summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-11 15:45:08 +0000
committerPaul Phillips <paulp@improving.org>2010-04-11 15:45:08 +0000
commitbeebad1bc44db646ffa68bd1dbbba45e82b251b7 (patch)
tree0a7358f1edf232893024be76ca4c8bb92747dbef /src/compiler
parent18700fab3b39525724ce75633c7efb604d85fa65 (diff)
downloadscala-beebad1bc44db646ffa68bd1dbbba45e82b251b7.tar.gz
scala-beebad1bc44db646ffa68bd1dbbba45e82b251b7.tar.bz2
scala-beebad1bc44db646ffa68bd1dbbba45e82b251b7.zip
Some overdue cleanups on Exception.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
index 0cc0f65640..8689044927 100644
--- a/src/compiler/scala/tools/nsc/Interpreter.scala
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -22,7 +22,7 @@ import scala.collection.mutable.{ ListBuffer, HashSet, HashMap, ArrayBuffer }
import scala.collection.immutable.Set
import scala.tools.nsc.util.ScalaClassLoader
import ScalaClassLoader.URLClassLoader
-import scala.util.control.Exception.{ Catcher, catching, ultimately, unwrapping }
+import scala.util.control.Exception.{ Catcher, catching, catchingPromiscuously, ultimately, unwrapping }
import io.{ PlainFile, VirtualDirectory }
import reporters.{ ConsoleReporter, Reporter }
@@ -991,7 +991,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) {
}
}
- catching(onErr) {
+ catchingPromiscuously(onErr) {
unwrapping(wrapperExceptions: _*) {
(resultValMethod.invoke(loadedResultObject).toString, true)
}