]> matita.cs.unibo.it Git - helm.git/commitdiff
More informative error message.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 13 Jan 2006 11:04:44 +0000 (11:04 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 13 Jan 2006 11:04:44 +0000 (11:04 +0000)
helm/ocaml/cic_proof_checking/cicTypeChecker.ml

index cd742d4cdff80a1e7baf25b6d122542265b34c3c..a44c63469916549214738b1620eeba27eaf380ae 100644 (file)
@@ -2059,7 +2059,10 @@ let typecheck_obj0 ~logger uri ugraph =
       let b,ugraph = (CicReduction.are_convertible [] ty_te ty ugraph) in
        if not b then
          raise (TypeCheckerFailure
-          (lazy "the type of the body is not the one expected"))
+          (lazy
+            ("the type of the body is not the one expected:\n" ^
+             CicPp.ppterm ty_te ^ "\nvs\n" ^
+             CicPp.ppterm ty)))
        else
         ugraph
    | C.Constant (_,None,ty,_,_) ->