diff options
author | Berk D. Demir <bdemir@twitter.com> | 2013-11-21 23:46:43 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:08:39 -0500 |
commit | 25f1d80062d7e0d590d79d2f7a298e0c4e9d38c9 (patch) | |
tree | b910369134f020f8f3bf116c525a4418f23a0f6d /libraries | |
parent | 5226305111af0ef503471f71b2e1f1268457681b (diff) | |
download | cbt-25f1d80062d7e0d590d79d2f7a298e0c4e9d38c9.tar.gz cbt-25f1d80062d7e0d590d79d2f7a298e0c4e9d38c9.tar.bz2 cbt-25f1d80062d7e0d590d79d2f7a298e0c4e9d38c9.zip |
[split] finagle & util: 2.10 pattern matching strictness
2.10 compiler is much more strict about pattern matching exceptions and
warns if catch all case is not qualified with `Throwable`. So let's do
that to decrease compiler warnings.
RB_ID=237379
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/eval/Eval.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/eval/Eval.scala b/libraries/eval/Eval.scala index ed35487..8c3cc0e 100644 --- a/libraries/eval/Eval.scala +++ b/libraries/eval/Eval.scala @@ -73,14 +73,14 @@ class Eval(target: Option[File]) { private lazy val compilerPath = try { classPathOfClass("scala.tools.nsc.Interpreter") } catch { - case e => + case e: Throwable => throw new RuntimeException("Unable lo load scala interpreter from classpath (scala-compiler jar is missing?)", e) } private lazy val libPath = try { classPathOfClass("scala.ScalaObject") } catch { - case e => + case e: Throwable => throw new RuntimeException("Unable to load scala base object from classpath (scala-library jar is missing?)", e) } |