From b82fbbf4eebebe40f6e4557c191b177a696b0e2c Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 18 Feb 2004 14:21:27 +0000 Subject: [PATCH] catch parse error exception and show them to the user during main loop --- helm/ocaml/cic_disambiguation/test_parser.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm/ocaml/cic_disambiguation/test_parser.ml b/helm/ocaml/cic_disambiguation/test_parser.ml index ff4ae9726..4937f4ca4 100644 --- a/helm/ocaml/cic_disambiguation/test_parser.ml +++ b/helm/ocaml/cic_disambiguation/test_parser.ml @@ -61,9 +61,12 @@ let _ = print_endline (CicTextualParser2.EnvironmentP3.to_string env)); flush stdout with + | CicTextualParser2.Parse_error msg -> prerr_endline msg +(* | Stdpp.Exc_located ((p_start, p_end), exn) -> prerr_endline (Printf.sprintf "Exception at character %d-%d: %s" p_start p_end (Printexc.to_string exn)) +*) done with End_of_file -> close_in ic -- 2.39.2