]> matita.cs.unibo.it Git - helm.git/commitdiff
Better handling of exceptions.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 21 Feb 2008 18:56:44 +0000 (18:56 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 21 Feb 2008 18:56:44 +0000 (18:56 +0000)
helm/software/components/ng_kernel/rt.ml

index e7ecaf3aff49e559fa60e8b7d571075689ef6ed2..a7d95978416a7dd89b2868d1c16385dc7d4b6156 100644 (file)
@@ -11,8 +11,12 @@ let _ =
      prerr_endline ("------- " ^ UriManager.string_of_uri u);
      prerr_endline (CicPp.ppobj o);
      try CicTypeChecker.typecheck_obj u o
-     with CicTypeChecker.TypeCheckerFailure s ->
+     with
+       CicTypeChecker.TypeCheckerFailure s
+     | CicTypeChecker.AssertFailure s ->
        prerr_endline (Lazy.force s)
-     | CicEnvironment.Object_not_found _ -> ()) 
+     | CicEnvironment.Object_not_found uri ->
+       prerr_endline
+        ("CicEnvironment: Object not found " ^ UriManager.string_of_uri uri))
    objs;
 ;;