X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Flibrary%2FlibrarySync.ml;h=8ecabbbb6aeb435b44c735d744d709f37b97007a;hb=9ebbff1619da00a2d42e04def79c59d129ee4a92;hp=83f861b4ef6b790e6d92a48ac9f040ff562bf80c;hpb=b0442b0e38b410962bf736585d34f5b8185eb9c2;p=helm.git diff --git a/components/library/librarySync.ml b/components/library/librarySync.ml index 83f861b4e..8ecabbbb6 100644 --- a/components/library/librarySync.ml +++ b/components/library/librarySync.ml @@ -282,7 +282,7 @@ let add_coercion ~add_composites refinement_toolkit uri arity baseuri = (CoercDb.add_coercion (src_carr, tgt_carr, uri);[]) else let new_coercions = - CicCoercion.close_coercion_graph refinement_toolkit src_carr tgt_carr uri + CicCoercion.close_coercion_graph src_carr tgt_carr uri baseuri in let new_coercions = @@ -444,6 +444,7 @@ let let add_obj refinement_toolkit uri obj = add_single_obj uri obj refinement_toolkit; let uris = ref [] in + let not_debug = not (Helm_registry.get_bool "matita.debug") in try begin match obj with @@ -474,9 +475,10 @@ let add_obj refinement_toolkit uri obj = end; UriManager.UriHashtbl.add auxiliary_lemmas_hashtbl uri !uris; !uris - with exn -> - List.iter remove_single_obj !uris; - raise exn + with + | exn when not_debug -> + List.iter remove_single_obj !uris; + raise exn let remove_obj uri = let uris =