From f8489a77c5922d67088232e48be87cf4d9454108 Mon Sep 17 00:00:00 2001 From: dmharrah Date: Thu, 16 Jul 2009 13:51:19 +0000 Subject: [PATCH] Revert change that exited on exception in main thread (that behavior is a Scala runner bug) git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@867 d89573ee-9141-11dd-94d4-bdf5e562f29c --- src/main/scala/sbt/TrapExit.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/scala/sbt/TrapExit.scala b/src/main/scala/sbt/TrapExit.scala index 43a63615d..aef7cebb5 100644 --- a/src/main/scala/sbt/TrapExit.scala +++ b/src/main/scala/sbt/TrapExit.scala @@ -30,13 +30,7 @@ object TrapExit val originalThreads = allThreads val code = new ExitCode val customThreadGroup = new ExitThreadGroup(new ExitHandler(Thread.getDefaultUncaughtExceptionHandler, originalThreads, code, log)) - val executionThread = - new Thread(customThreadGroup, "run-main") - { - override def run(): Unit = - try { execute } - catch { case e => log.trace(e); System.exit(1) } // an exception in the main thread causes the whole program to terminate - } + val executionThread = new Thread(customThreadGroup, "run-main") { override def run() { execute } } val originalSecurityManager = System.getSecurityManager try