]> matita.cs.unibo.it Git - helm.git/commitdiff
fixed a when that was causing backtrace loss
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 24 May 2007 15:53:33 +0000 (15:53 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 24 May 2007 15:53:33 +0000 (15:53 +0000)
helm/software/components/library/librarySync.ml

index 83f861b4ef6b790e6d92a48ac9f040ff562bf80c..e621a7a0cf1311ef26319e7363714db36fce5383 100644 (file)
@@ -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 =