diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-03 18:18:24 +0100 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-03 18:18:24 +0100 |
commit | f2ccb43a844e484ae511c8cff3fbf534a0d86ebe (patch) | |
tree | 93e0f3ab7753d0790bb768de2f9a0f2b81284e93 | |
parent | ce0bfa62aa18f2b153aa5690ed34bf05f71bb7eb (diff) | |
download | scala-f2ccb43a844e484ae511c8cff3fbf534a0d86ebe.tar.gz scala-f2ccb43a844e484ae511c8cff3fbf534a0d86ebe.tar.bz2 scala-f2ccb43a844e484ae511c8cff3fbf534a0d86ebe.zip |
Change the default reportFailure implementation.
-rw-r--r-- | src/library/scala/concurrent/akka/ExecutionContextImpl.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/akka/ExecutionContextImpl.scala b/src/library/scala/concurrent/akka/ExecutionContextImpl.scala index f8c99d857b..2bc846ba3c 100644 --- a/src/library/scala/concurrent/akka/ExecutionContextImpl.scala +++ b/src/library/scala/concurrent/akka/ExecutionContextImpl.scala @@ -60,8 +60,9 @@ class ExecutionContextImpl(executorService: ExecutorService) extends ExecutionCo } } - def reportFailure(t: Throwable) { - t.printStackTrace() + def reportFailure(t: Throwable) = t match { + case e: Error => throw e // rethrow serious errors + case t => t.printStackTrace() } /** Only callable from the tasks running on the same execution context. */ |