diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index aede2abfb294d59af690ffa77fc76666f3e58184..45f880fbe64dec700ef72086e324877299969e5b 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -53,8 +53,7 @@ impl ProtocolDescription { let source = InputSource::new(String::new(), Vec::from(buffer)); let mut parser = Parser::new(); parser.feed(source).expect("failed to feed source"); - - parser.write_ast_to = Some(String::from("hello.txt")); + if let Err(err) = parser.parse() { println!("ERROR:\n{}", err); return Err(format!("{}", err))