aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-11-29 23:13:19 -0800
committerbnewbold <bnewbold@robocracy.org>2016-11-29 23:23:06 -0800
commita4e33306fffe87cada79c8ba47d4172d39f3fba5 (patch)
tree82aaab103a35c306177fe4c5ba2dc63cdd48d03b /src/bin
parent2eb8e3e5e3d3df5ccaf5d92cb5b53cbf321688d1 (diff)
downloadmodelthing-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.rs2
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)),
}
}
}