--- a/src/Pure/Isar/proof_context.ML Tue Mar 31 13:23:39 2009 +0200
+++ b/src/Pure/Isar/proof_context.ML Tue Mar 31 13:34:48 2009 +0200
@@ -582,8 +582,9 @@
| (SOME S, NONE) => S
| (SOME S, SOME S') =>
if Type.eq_sort tsig (S, S') then S'
- else error ("Sort constraint inconsistent with default for type variable " ^
- quote (Term.string_of_vname' xi)));
+ else error ("Sort constraint " ^ Syntax.string_of_sort_global thy S ^
+ " inconsistent with default " ^ Syntax.string_of_sort_global thy S' ^
+ " for type variable " ^ quote (Term.string_of_vname' xi)));
in get end;
local