From: Claudio Sacerdoti Coen Date: Thu, 21 Feb 2008 18:56:44 +0000 (+0000) Subject: Better handling of exceptions. X-Git-Tag: make_still_working~5585 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=2cb9996c8aa785c962bba42ebd00fae5018b03d8;p=helm.git Better handling of exceptions. --- diff --git a/helm/software/components/ng_kernel/rt.ml b/helm/software/components/ng_kernel/rt.ml index e7ecaf3af..a7d959784 100644 --- a/helm/software/components/ng_kernel/rt.ml +++ b/helm/software/components/ng_kernel/rt.ml @@ -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; ;;