diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-07-25 12:27:02 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-07-25 12:27:02 +0000 |
commit | d1fb9078954b3e35cef3f6967ce39748a1011036 (patch) | |
tree | 2f5a515d3c9bacf9d4cf1625f440b060b1f2f432 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala | |
parent | eb79ac2f9da57cd611028de52fc5f47e79525c94 (diff) | |
download | scala-d1fb9078954b3e35cef3f6967ce39748a1011036.tar.gz scala-d1fb9078954b3e35cef3f6967ce39748a1011036.tar.bz2 scala-d1fb9078954b3e35cef3f6967ce39748a1011036.zip |
Hardening of plugin to convert more hard crashe...
Hardening of plugin to convert more hard crashes as soft ones.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index 71641e2c3a..20eaa5fe29 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -337,14 +337,14 @@ trait Contexts { self: Analyzer => def error(pos: Position, err: Error) { val msg = err.getMessage() - if (reportGeneralErrors) + if (reportGeneralErrors || inIDE) unit.error(pos, if (checking) "**** ERROR DURING INTERNAL CHECKING ****\n" + msg else msg) else throw err } def error(pos: Position, msg: String) { - if (reportGeneralErrors) + if (reportGeneralErrors || inIDE) unit.error(pos, if (checking) "**** ERROR DURING INTERNAL CHECKING ****\n" + msg else msg) else throw new TypeError(pos, msg) |