src/Pure/Concurrent/future.ML
changeset 44249 64620f1d6f87
parent 44247 270366301bd7
child 44268 f6a11c1da821
--- a/src/Pure/Concurrent/future.ML	Wed Aug 17 22:25:00 2011 +0200
+++ b/src/Pure/Concurrent/future.ML	Wed Aug 17 23:37:23 2011 +0200
@@ -394,8 +394,12 @@
 
 (* future jobs *)
 
-fun assign_result group result res =
+fun assign_result group result raw_res =
   let
+    val res =
+      (case raw_res of
+        Exn.Exn exn => Exn.Exn (#2 (Par_Exn.serial exn))
+      | _ => raw_res);
     val _ = Single_Assignment.assign result res
       handle exn as Fail _ =>
         (case Single_Assignment.peek result of