tuned msg;
authorwenzelm
Wed, 13 Jun 2007 00:02:04 +0200
changeset 23361 df3d21caad2c
parent 23360 9e3c0c1ad0ad
child 23362 de1476695aa6
tuned msg;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Wed Jun 13 00:02:03 2007 +0200
+++ b/src/Pure/Isar/proof_context.ML	Wed Jun 13 00:02:04 2007 +0200
@@ -475,7 +475,8 @@
     val is_declared = is_some (def_type (x, ~1));
     val res =
       if is_free andalso not is_internal then (no_skolem false x; sko)
-      else ((no_skolem false x; ()) handle ERROR msg => legacy_feature msg;
+      else ((no_skolem false x; ()) handle ERROR msg =>
+          legacy_feature (msg ^ ContextPosition.str_of ctxt);
         if is_internal andalso is_declared then SOME x else NONE);
   in if is_some res then res else if is_declared then SOME x else NONE end;