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 4322579309a48a4a7
parent 43224 7797efa897a1
child 43226 ce00462fe8aa
nicer error message from Metis for know failure that isn't the user's fault
src/HOL/Tools/Metis/metis_reconstruct.ML
     1.1 --- a/src/HOL/Tools/Metis/metis_reconstruct.ML	Thu Apr 14 11:24:05 2011 +0200
     1.2 +++ b/src/HOL/Tools/Metis/metis_reconstruct.ML	Thu Apr 14 11:24:05 2011 +0200
     1.3 @@ -424,6 +424,8 @@
     1.4          val _ = trace_msg ctxt (fn () => "  index_th2: " ^ string_of_int index_th2)
     1.5      in
     1.6        resolve_inc_tyvars thy (select_literal index_th1 i_th1) index_th2 i_th2
     1.7 +      handle TERM (s, _) => error ("Cannot replay Metis proof in Isabelle:\n" ^
     1.8 +                                   "resolve_inf: " ^ s)
     1.9      end
    1.10    end;
    1.11