summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-09-16 14:46:14 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-09-16 14:46:14 +0200
commit05be78101c694974ae964bb26b48c1a0b5a372c1 (patch)
tree02972bd11f320a50322289f1dd5b699afb2315ed /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
parent33d43db1b83745ac6717de1f7c70a0a07a5a07c7 (diff)
downloadscala-05be78101c694974ae964bb26b48c1a0b5a372c1.tar.gz
scala-05be78101c694974ae964bb26b48c1a0b5a372c1.tar.bz2
scala-05be78101c694974ae964bb26b48c1a0b5a372c1.zip
extinguishes some magic from scalac
First I was quite skeptical about Paul's dislike of names that contain "magic" in them. However when I went through the code and tried to think of "magic"-less alternatives, it became apparent that resulting names are much better than the originals. Therefore I removed all the magic from reflection and macros. Feels good.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
index b7195b0349..01e9b99c9f 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
@@ -720,7 +720,8 @@ trait ContextErrors {
Some(EOL + stackTraceString(realex))
}
} catch {
- // if the magic above goes boom, just fall back to uninformative, but better than nothing, getMessage
+ // the code above tries various tricks to detect the relevant portion of the stack trace
+ // if these tricks fail, just fall back to uninformative, but better than nothing, getMessage
case NonFatal(ex) =>
macroLogVerbose("got an exception when processing a macro generated exception\n" +
"offender = " + stackTraceString(realex) + "\n" +