From a4e33306fffe87cada79c8ba47d4172d39f3fba5 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 29 Nov 2016 23:13:19 -0800 Subject: first pass at pretty-printing parser errors --- src/bin/mt-tool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin') 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) { 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)), } } } -- cgit v1.2.3