]> matita.cs.unibo.it Git - helm.git/commitdiff
-debug should work better
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 13 Apr 2006 14:20:25 +0000 (14:20 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 13 Apr 2006 14:20:25 +0000 (14:20 +0000)
helm/software/matita/matitaMathView.ml

index a1eef10673ca4dc5115994b14bf729976d2cca48..1e5cb16a804510402b47d0e3c201f2232783ccf6 100644 (file)
@@ -810,11 +810,12 @@ class cicBrowser_impl ~(history:MatitaTypes.mathViewer_entry MatitaMisc.history)
     [ "dir", GdkPixbuf.from_file (MatitaMisc.image_path "matita-folder.png");
       "obj", GdkPixbuf.from_file (MatitaMisc.image_path "matita-object.png") ]
   in
+  let b = (not (Helm_registry.get_bool "matita.debug")) in
   let handle_error f =
     try
       f ()
     with exn ->
-      if not (Helm_registry.get_bool "matita.debug") then
+      if b then
         fail (snd (MatitaExcPp.to_string exn))
       else raise exn
   in