From 25f1d80062d7e0d590d79d2f7a298e0c4e9d38c9 Mon Sep 17 00:00:00 2001 From: "Berk D. Demir" Date: Thu, 21 Nov 2013 23:46:43 +0000 Subject: [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 --- libraries/eval/Eval.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries') 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) } -- cgit v1.2.3