src/Tools/Code/code_thingol.ML
changeset 32131 7913823f14e3
parent 32123 8bac9ee4b28d
parent 32091 30e2ffbba718
child 32273 3c395fc7ec5e
--- a/src/Tools/Code/code_thingol.ML	Wed Jul 22 10:49:26 2009 +0200
+++ b/src/Tools/Code/code_thingol.ML	Wed Jul 22 11:23:09 2009 +0200
@@ -469,7 +469,7 @@
   let
     val err_class = Sorts.class_error (Syntax.pp_global thy) e;
     val err_thm = case thm
-     of SOME thm => "\n(in code equation " ^ Display.string_of_thm thm ^ ")" | NONE => "";
+     of SOME thm => "\n(in code equation " ^ Display.string_of_thm_global thy thm ^ ")" | NONE => "";
     val err_typ = "Type " ^ Syntax.string_of_typ_global thy ty ^ " not of sort "
       ^ Syntax.string_of_sort_global thy sort;
   in error ("Wellsortedness error" ^ err_thm ^ ":\n" ^ err_typ ^ "\n" ^ err_class) end;