Skip to content

Commit

Permalink
Merge pull request #9 from mvirts/gosub_main_fix
Browse files Browse the repository at this point in the history
fixed printing document tree and errors
  • Loading branch information
jaytaph authored Sep 23, 2023
2 parents d2e37f7 + e9b6d15 commit e9a6623
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bin/gosub-browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ fn main() {
}

let mut parser = Html5Parser::new(&mut stream);
let document = parser.parse();
let (document, parse_error) = parser.parse();

println!("Generated tree: \n\n {}", document.root);
println!("Generated tree: \n\n {}", document);

for e in parse_error{
println!("Parse Error: {}", e.message)
}
}

0 comments on commit e9a6623

Please sign in to comment.