X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitacLib.ml;h=8808aea22bc71f2c088bab3b6a682c7af9384580;hb=84ef7e61acf6d6bc785fced0ed5790897f86c746;hp=0af97572e11a0dd59e07e5726aea10eab988ad56;hpb=1436037fbaeb5155b485371298b3656bc636f22f;p=helm.git diff --git a/helm/software/matita/matitacLib.ml b/helm/software/matita/matitacLib.ml index 0af97572e..8808aea22 100644 --- a/helm/software/matita/matitacLib.ml +++ b/helm/software/matita/matitacLib.ml @@ -248,12 +248,13 @@ let compile options fname = LexiconSync.time_travel ~present:lexicon_status ~past:initial_lexicon_status; clean_exit baseuri false - | MatitaEngine.EnrichedWithLexiconStatus (exn, lex_stat) -> + | MatitaEngine.EnrichedWithLexiconStatus (exn, lex_stat) as exn' -> (match exn with | Sys.Break -> HLog.error "user break!" | HExtlib.Localized (floc,CicNotationParser.Parse_error err) -> let (x, y) = HExtlib.loc_of_floc floc in HLog.error (sprintf "Parse error at %d-%d: %s" x y err) + | exn when matita_debug -> raise exn' | exn -> HLog.error (snd (MatitaExcPp.to_string exn))); LexiconSync.time_travel ~present:lex_stat ~past:initial_lexicon_status; pp_times fname false big_bang big_bang_u big_bang_s;