diff options
author | Martin Odersky <odersky@gmail.com> | 2012-07-20 16:21:00 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-20 17:19:50 +0200 |
commit | e4db7e05023d66a42bddcd0d194cf239971de9d4 (patch) | |
tree | 689bb8d78e84f3da6a1c6f1ddbe0ef634b555df8 /src/compiler/scala/tools/nsc/Driver.scala | |
parent | c1816313f52860d47dc7f3efed195f5b0482743b (diff) | |
download | scala-e4db7e05023d66a42bddcd0d194cf239971de9d4.tar.gz scala-e4db7e05023d66a42bddcd0d194cf239971de9d4.tar.bz2 scala-e4db7e05023d66a42bddcd0d194cf239971de9d4.zip |
address "this would catch all throwables" warnings
original patch by @odersky in #955 -- criterion for the refactor:
"catch Throwable as long as there's no obvious control flow exception going through the catch
and the caught exception is processed further"
rebased & updated with review comments in #955 and #954
Diffstat (limited to 'src/compiler/scala/tools/nsc/Driver.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Driver.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Driver.scala b/src/compiler/scala/tools/nsc/Driver.scala index 15e2929ff1..1775602122 100644 --- a/src/compiler/scala/tools/nsc/Driver.scala +++ b/src/compiler/scala/tools/nsc/Driver.scala @@ -53,7 +53,7 @@ abstract class Driver { else doCompile(compiler) } catch { - case ex => + case ex: Throwable => compiler.logThrowable(ex) ex match { case FatalError(msg) => reporter.error(null, "fatal error: " + msg) |