aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/Formatting.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-13 13:28:33 +0200
committerMartin Odersky <odersky@gmail.com>2016-08-16 17:34:42 +0200
commit4a0858fab5547c896870d269968aff9674ab2ee6 (patch)
treed6681f6172335a276d5a34b15fc48abbcd1253a5 /src/dotty/tools/dotc/printing/Formatting.scala
parentb3d4fd94f24b961715dce15d7d46fcdd32f7dd69 (diff)
downloaddotty-4a0858fab5547c896870d269968aff9674ab2ee6.tar.gz
dotty-4a0858fab5547c896870d269968aff9674ab2ee6.tar.bz2
dotty-4a0858fab5547c896870d269968aff9674ab2ee6.zip
Catch exceptions only in i-interpolator.
Normal show will propagate the excpetions. Previously, exceptions were filtered in both cases, which was redundant. Also, it's good to have a way to show things that does not mask exceptions, if only to debug problems in show itself.
Diffstat (limited to 'src/dotty/tools/dotc/printing/Formatting.scala')
-rw-r--r--src/dotty/tools/dotc/printing/Formatting.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/Formatting.scala b/src/dotty/tools/dotc/printing/Formatting.scala
index 174d801d1..8d7136839 100644
--- a/src/dotty/tools/dotc/printing/Formatting.scala
+++ b/src/dotty/tools/dotc/printing/Formatting.scala
@@ -28,7 +28,7 @@ object Formatting {
case arg: Showable =>
try arg.show(ctx.addMode(Mode.FutureDefsOK))
catch {
- case NonFatal(ex) => s"(missing due to $ex)"
+ case NonFatal(ex) => s"[cannot display due to $ex, raw string = $toString]"
}
case _ => arg.toString
}