diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 11:49:37 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 15:55:55 +0200 |
commit | 064bc5eb25094f0d6de2aa8990466fed29d3c095 (patch) | |
tree | a116636150d637db50482edb13d9041137136ae2 /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | 43da1dbbe99e8bdb98d9e08b8e3a255dd4af6902 (diff) | |
download | scala-064bc5eb25094f0d6de2aa8990466fed29d3c095.tar.gz scala-064bc5eb25094f0d6de2aa8990466fed29d3c095.tar.bz2 scala-064bc5eb25094f0d6de2aa8990466fed29d3c095.zip |
Remove `def error(pos: Position, err: Throwable)`
The overload was used only once.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index fbea69db5a..89b064e7c1 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -629,7 +629,7 @@ trait TypeDiagnostics { throw new FatalError("cannot redefine root "+sym) } case _ => - context0.error(ex.pos, ex) + context0.error(ex.pos, ex.msg) } } } |