src/HOL/Tools/Metis/metis_translate.ML
changeset 42650 552eae49f97d
parent 42572 0c9a947b43fc
child 42727 f365f5138771
--- a/src/HOL/Tools/Metis/metis_translate.ML	Tue May 03 08:52:32 2011 +0200
+++ b/src/HOL/Tools/Metis/metis_translate.ML	Tue May 03 14:23:40 2011 +0200
@@ -10,6 +10,7 @@
 signature METIS_TRANSLATE =
 sig
   type name = string * string
+
   datatype type_literal =
     TyLitVar of name * name |
     TyLitFree of name * name
@@ -199,7 +200,7 @@
 (*Remove the initial ' character from a type variable, if it is present*)
 fun trim_type_var s =
   if s <> "" andalso String.sub(s,0) = #"'" then String.extract(s,1,NONE)
-  else error ("trim_type: Malformed type variable encountered: " ^ s);
+  else raise Fail ("trim_type: Malformed type variable encountered: " ^ s)
 
 fun ascii_of_indexname (v,0) = ascii_of v
   | ascii_of_indexname (v,i) = ascii_of v ^ "_" ^ string_of_int i;