summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-22 14:57:44 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-05-22 14:57:44 +0200
commit29c8e323c589058a0668a249a39fec28293c45ca (patch)
tree85fbe548dc419fbaba1a2d7cbc93c80972031c2a /src
parentf406550146250f5a6036d3d778582efa6d68252a (diff)
downloadscala-29c8e323c589058a0668a249a39fec28293c45ca.tar.gz
scala-29c8e323c589058a0668a249a39fec28293c45ca.tar.bz2
scala-29c8e323c589058a0668a249a39fec28293c45ca.zip
For the benefit of future debugger users, let the context print some more useful information about error reporting
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala4
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 0924789948..29249023b9 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -438,8 +438,8 @@ trait Contexts { self: Analyzer =>
def enclosingContextChain: List[Context] = this :: outer.enclosingContextChain
- override def toString = "Context(%s@%s unit=%s scope=%s errors=%b)".format(
- owner.fullName, tree.shortClass, unit, scope.##, hasErrors
+ override def toString = "Context(%s@%s unit=%s scope=%s errors=%b, reportErrors=%b, throwErrors=%b)".format(
+ owner.fullName, tree.shortClass, unit, scope.##, hasErrors, reportErrors, throwErrors
)
/** Is `sub` a subclass of `base` or a companion object of such a subclass?
*/