From: Enrico Tassi Date: Fri, 3 Oct 2008 11:06:40 +0000 (+0000) Subject: when -debug do not catch the exception X-Git-Tag: make_still_working~4703 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bfde711dd3ecd1065c8cbc6d321c583b1ac5d6c5;p=helm.git when -debug do not catch the exception --- diff --git a/helm/software/matita/matitacLib.ml b/helm/software/matita/matitacLib.ml index f248545fb..a9172cee5 100644 --- a/helm/software/matita/matitacLib.ml +++ b/helm/software/matita/matitacLib.ml @@ -382,6 +382,7 @@ module F = ;; let build options fname = + let matita_debug = Helm_registry.get_bool "matita.debug" in let compile opts fname = try GrafiteSync.push (); @@ -395,7 +396,7 @@ module F = GrafiteParser.pop (); GrafiteSync.pop (); false - | exn -> + | exn when not matita_debug -> HLog.error ("Unexpected " ^ snd(MatitaExcPp.to_string exn)); assert false in