Skip to content

Commit b5a0e51

Browse files
committed
Update the crash report message
1 parent 50ccf30 commit b5a0e51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/report.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,19 @@ object report:
168168
val fileAReportMsg =
169169
if ctx.phase.isInstanceOf[plugins.PluginPhase]
170170
then
171-
s"""| Please file a crash report in the compiler plugin backlog.
172-
| The name of the compiler plugin which caused the crash is "${ctx.phase.megaPhase}".
171+
s"""| An unhandled exception was thrown in the compiler plugin named "${ctx.phase.megaPhase}".
172+
| Please file a crash report in the compiler plugin backlog.
173173
| For non-enriched exceptions, compile with -Xno-enrich-error-messages.
174174
|""".stripMargin
175175
else
176-
s"""| Please file a crash report here:
176+
s"""| An unhandled exception was thrown in the compiler.
177+
| Please file a crash report here:
177178
| https://github.com/scala/scala3/issues/new/choose
178179
| For non-enriched exceptions, compile with -Xno-enrich-error-messages.
179180
|""".stripMargin
180181
s"""
181182
| $errorMessage
182183
|
183-
| An unhandled exception was thrown in the compiler.
184184
|$fileAReportMsg
185185
|
186186
|$info1

0 commit comments

Comments
 (0)