src/Pure/ML-Systems/compiler_polyml-5.2.ML
changeset 39242 28d3809ff91f
parent 32738 15bb09ca0378
child 41717 8a1ab91df301
--- a/src/Pure/ML-Systems/compiler_polyml-5.2.ML	Thu Sep 09 21:30:33 2010 +0200
+++ b/src/Pure/ML-Systems/compiler_polyml-5.2.ML	Fri Sep 10 12:39:20 2010 +0200
@@ -37,8 +37,10 @@
       (while not (List.null (! in_buffer)) do
         PolyML.compiler (get, parameters) ())
       handle exn =>
-       (put ("Exception- " ^ General.exnMessage exn ^ " raised");
-        error (output ()); reraise exn);
+        if Exn.is_interrupt exn then reraise exn
+        else
+         (put ("Exception- " ^ General.exnMessage exn ^ " raised");
+          error (output ()); reraise exn);
   in if verbose then print (output ()) else () end;
 
 fun use_file context verbose name =