]> matita.cs.unibo.it Git - helm.git/commitdiff
enriched error message
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 1 Feb 2005 17:55:29 +0000 (17:55 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 1 Feb 2005 17:55:29 +0000 (17:55 +0000)
helm/ocaml/cic_disambiguation/disambiguate.ml

index 67b6d115c2cd908daac51084287ce958be60f0c6..9f4c41d2e709e608b5f7497d27692d6737736598 100644 (file)
@@ -67,13 +67,11 @@ let refine metasenv context term ugraph =
        (Ok (term', metasenv')),ugraph1
     with
       | CicRefine.Uncertain _ ->
-          debug_print ("%%% UNCERTAIN!!! " ^ CicPp.ppterm term) ;
+          debug_print ("UNCERTAIN!!! " ^ CicPp.ppterm term) ;
           Uncertain,ugraph
       | CicRefine.RefineFailure msg ->
-          debug_print (
-            (sprintf ("%%%%%% PRUNED!!!\n<<begin cause>>\n" ^^ 
-              "%s\n<<end cause>>\n<<begin term>>\n%s\n<<end term>>") 
-              msg (CicPp.ppterm term)));
+          debug_print (sprintf "PRUNED!!!\nterm%s\nmessage:%s"
+            (CicPp.ppterm term) msg);
           Ko,ugraph
       | CicUnification.UnificationFailure s -> 
         prerr_endline ("PASSADI QUI: " ^ s);