more robust load_timings: ignore JVM errors such as java.lang.OutOfMemoryError;
authorwenzelm
Tue, 14 May 2013 16:54:47 +0200
changeset 51986 5fdca5bfc0b4
parent 51985 f6c04bf0123d
child 51987 7d8e0e3c553b
more robust load_timings: ignore JVM errors such as java.lang.OutOfMemoryError;
src/Pure/Tools/build.scala
--- a/src/Pure/Tools/build.scala	Tue May 14 16:45:09 2013 +0200
+++ b/src/Pure/Tools/build.scala	Tue May 14 16:54:47 2013 +0200
@@ -721,6 +721,7 @@
       }
       catch {
         case ERROR(msg) => ignore_error(msg)
+        case exn: java.lang.Error => ignore_error(Exn.message(exn))
         case _: XML.XML_Atom | _: XML.XML_Body => ignore_error("")
       }
     }