nicer error message from Metis for know failure that isn't the user's fault
authorblanchet
Thu, 14 Apr 2011 11:24:05 +0200
changeset 42354 79309a48a4a7
parent 42353 7797efa897a1
child 42355 ce00462fe8aa
nicer error message from Metis for know failure that isn't the user's fault
src/HOL/Tools/Metis/metis_reconstruct.ML
--- a/src/HOL/Tools/Metis/metis_reconstruct.ML	Thu Apr 14 11:24:05 2011 +0200
+++ b/src/HOL/Tools/Metis/metis_reconstruct.ML	Thu Apr 14 11:24:05 2011 +0200
@@ -424,6 +424,8 @@
         val _ = trace_msg ctxt (fn () => "  index_th2: " ^ string_of_int index_th2)
     in
       resolve_inc_tyvars thy (select_literal index_th1 i_th1) index_th2 i_th2
+      handle TERM (s, _) => error ("Cannot replay Metis proof in Isabelle:\n" ^
+                                   "resolve_inf: " ^ s)
     end
   end;