]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic/cicPushParser.ml
handle XmlPushParser.Parse_error exception
[helm.git] / helm / ocaml / cic / cicPushParser.ml
index 4365184bb9858b90133f89df40e696ae14f29942..9a0566ec2e6048d3801b60a1f33dffda65b8db11 100644 (file)
@@ -645,6 +645,7 @@ let parse uri filename =
   with
   | Failure "int_of_string" -> parse_error ctxt "integer number expected"
   | Invalid_argument "bool_of_string" -> parse_error ctxt "boolean expected"
+  | P.Parse_error msg -> parse_error ctxt ("parse error: " ^ msg)
   | Parser_failure _
   | Getter_failure _ as exn ->
       raise exn