X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitaEngine.ml;h=fa9a0d393ab96ae7f3d879a0ba30caa478f2596c;hb=ed89063fccf02a7a63cae52292e3ff0cc2548731;hp=8772fd03bb0ee35ca47d57b89d49d8cdbe536a5b;hpb=c0731d1fa3ae894da2473541a759d48e9b76613a;p=helm.git diff --git a/helm/software/matita/matitaEngine.ml b/helm/software/matita/matitaEngine.ml index 8772fd03b..fa9a0d393 100644 --- a/helm/software/matita/matitaEngine.ml +++ b/helm/software/matita/matitaEngine.ml @@ -108,6 +108,7 @@ let eval_from_stream ~first_statement_only ~include_paths ?do_heavy_checks ?(enforce_no_new_aliases=true) ?(watch_statuses=fun _ _ -> ()) lexicon_status grafite_status str cb = + let matita_debug = Helm_registry.get_bool "matita.debug" in let rec loop lexicon_status grafite_status statuses = let loop = if first_statement_only then fun _ _ statuses -> statuses @@ -154,7 +155,7 @@ let eval_from_stream ~first_statement_only ~include_paths in watch_statuses lexicon_status grafite_status ; false, lexicon_status, grafite_status, (new_statuses @ statuses)) - with exn when (not (Helm_registry.get_bool "matita.debug")) -> + with exn when not matita_debug -> raise (EnrichedWithLexiconStatus (exn, lexicon_status)) in if stop then s else loop l g s