src/Pure/Concurrent/future.ML
changeset 50931 a7484a7b6c8a
parent 50916 fd902b616b48
child 50974 55f8bd61b029
--- a/src/Pure/Concurrent/future.ML	Thu Jan 17 12:04:05 2013 +0100
+++ b/src/Pure/Concurrent/future.ML	Thu Jan 17 12:04:52 2013 +0100
@@ -439,8 +439,10 @@
 
 fun error_msg pos ((serial, msg), exec_id) =
   Position.setmp_thread_data pos (fn () =>
-    if is_none exec_id orelse exec_id = Position.get_id pos
-    then Output.error_msg' (serial, msg) else warning msg) ();
+    let val id = Position.get_id pos in
+      if is_none id orelse is_none exec_id orelse id = exec_id
+      then Output.error_msg' (serial, msg) else ()
+    end) ();
 
 fun identify_result pos res =
   (case res of