From 0892990d7bbeb770de458a3b4ef2ffe34a1b11e3 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Mon, 28 Jan 2013 21:06:02 +0000 Subject: Actually adding backtrace handling. I hope I did not forget some [with] clauses. Otherwise, some stack frame will be missing from the debug. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16167 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/xml_parser.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/xml_parser.ml') diff --git a/lib/xml_parser.ml b/lib/xml_parser.ml index 81fefd8805..108e226783 100644 --- a/lib/xml_parser.ml +++ b/lib/xml_parser.ml @@ -166,7 +166,9 @@ let error_of_exn xparser = function | NoMoreData -> NodeExpected | Internal_error e -> e | Xml_lexer.Error e -> convert e - | e -> raise e + | e -> + (*let e = Errors.push e in: We do not record backtrace here. *) + raise e let do_parse xparser = try -- cgit v1.2.3