error with source printing

This commit is contained in:
Robin Appelman 2020-12-13 18:21:12 +01:00
commit bf1edefb25
4 changed files with 21 additions and 17 deletions

View file

@ -19,6 +19,6 @@ fn main() {
match parse(source) {
Ok(result) => print!("{:#?}", result),
Err(err) => eprint!("{}", err),
Err(err) => eprint!("{}", err.with_source(source)),
}
}