File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,10 @@ object Splicer {
355
355
sw.write(" Exception occurred while executing macro expansion.\n " )
356
356
val targetException = ex.getTargetException
357
357
if (! ctx.settings.Ydebug .value) {
358
- val end = ex.getTargetException .getStackTrace.lastIndexWhere { x =>
358
+ val end = targetException .getStackTrace.lastIndexWhere { x =>
359
359
x.getClassName == method.getDeclaringClass.getCanonicalName && x.getMethodName == method.getName
360
360
}
361
- val shortStackTrace = ex.getTargetException .getStackTrace.take(end + 1 )
361
+ val shortStackTrace = targetException .getStackTrace.take(end + 1 )
362
362
targetException.setStackTrace(shortStackTrace)
363
363
}
364
364
targetException.printStackTrace(new PrintWriter (sw))
You can’t perform that action at this time.
0 commit comments