]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matitaMathView.ml
-debug should work better
[helm.git] / 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