summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2006-08-21 10:24:57 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2006-08-21 10:24:57 +0000
commit5a90f0aebdaab1bea251887c70a615181b03b885 (patch)
tree4bebf8c84e609f0b3c72a972f11aef444eb3d355 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentad4905c0ff97620a55d3be7790363ab44e2e4b67 (diff)
downloadscala-5a90f0aebdaab1bea251887c70a615181b03b885.tar.gz
scala-5a90f0aebdaab1bea251887c70a615181b03b885.tar.bz2
scala-5a90f0aebdaab1bea251887c70a615181b03b885.zip
Enhanced error reporting to not eat stack trace.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 2c9797b0dc..7153fa49eb 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -145,7 +145,7 @@ trait Typers requires Analyzer {
ex.getMessage()
})
case _ =>
- context.error(pos, ex.getMessage())
+ context.error(pos, ex)
}
}
@@ -1786,8 +1786,10 @@ trait Typers requires Analyzer {
new Typer(context.make(tree, owner))
/** Types expression or definition `tree' */
- def typed(tree: Tree): Tree =
- typed(tree, EXPRmode, WildcardType)
+ def typed(tree: Tree): Tree = {
+ val ret = typed(tree, EXPRmode, WildcardType)
+ ret;
+ }
/** Types expression `tree' with given prototype `pt' */
def typed(tree: Tree, pt: Type): Tree =