diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-11-29 23:13:19 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-11-29 23:23:06 -0800 |
commit | a4e33306fffe87cada79c8ba47d4172d39f3fba5 (patch) | |
tree | 82aaab103a35c306177fe4c5ba2dc63cdd48d03b /src/bin | |
parent | 2eb8e3e5e3d3df5ccaf5d92cb5b53cbf321688d1 (diff) | |
download | modelthing-a4e33306fffe87cada79c8ba47d4172d39f3fba5.tar.gz modelthing-a4e33306fffe87cada79c8ba47d4172d39f3fba5.zip |
first pass at pretty-printing parser errors
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/mt-tool.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/mt-tool.rs b/src/bin/mt-tool.rs index 03f590a..61db3fe 100644 --- a/src/bin/mt-tool.rs +++ b/src/bin/mt-tool.rs @@ -31,7 +31,7 @@ fn parse_modelica_files(paths: Vec<String>) { match result { Ok(_) => println!("Input `{}` ({}s): OK", input, elapsed), - Err(err) => println!("Input `{}` ({}s): parse error {:?}", input, elapsed, err), + Err(err) => println!("Input `{}` ({}sec): ERROR\n{}", input, elapsed, modelthing::pp_parseerror(&s, err)), } } } |