src/Pure/ML-Systems/polyml.ML
changeset 26625 e0cc4169626e
parent 26504 6e87c0a60104
child 26879 4fc89bfc4b0c
--- a/src/Pure/ML-Systems/polyml.ML	Thu Apr 10 20:54:17 2008 +0200
+++ b/src/Pure/ML-Systems/polyml.ML	Thu Apr 10 20:54:18 2008 +0200
@@ -31,7 +31,9 @@
         PolyML.compiler
           {getChar = get, putString = put, lineNumber = fn () => ! current_line, fileName = name,
             nameSpace = PolyML.globalNameSpace} ())
-      handle exn => (err (output ()); raise exn);
+      handle exn =>
+       (put ("Exception- " ^ General.exnMessage exn ^ " raised");
+        err (output ()); raise exn);
   in
     if verbose then print (output ()) else ()
   end;