diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-01 16:00:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-01 16:00:50 +0000 |
commit | 1fd0b31aeca299d7f114578addf887f828d1e36b (patch) | |
tree | 2e7fad94d044b802b8606310088096ad4af36176 /src/compiler | |
parent | 9781aba3e538ca933dcc15039bf6df8c5ffeee35 (diff) | |
download | scala-1fd0b31aeca299d7f114578addf887f828d1e36b.tar.gz scala-1fd0b31aeca299d7f114578addf887f828d1e36b.tar.bz2 scala-1fd0b31aeca299d7f114578addf887f828d1e36b.zip |
Since somewhere before 2.8.0 shipped scalac has...
Since somewhere before 2.8.0 shipped scalac has disgorged a stack trace
for the misdemeanor of specifying a non-existent directory for -d. No
more, no review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/settings/MutableSettings.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala index a4a0cd3867..269de1d26e 100644 --- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala +++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala @@ -489,7 +489,8 @@ class MutableSettings(val errorFn: String => Unit) extends AbsSettings with Scal value = default override def value_=(str: String) { super.value_=(str) - outputDirs.setSingleOutput(str) + try outputDirs.setSingleOutput(str) + catch { case FatalError(msg) => errorFn(msg) } } } |