File tree 1 file changed +14
-4
lines changed
compiler/src/dotty/tools/dotc
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -165,13 +165,23 @@ object report:
165
165
" compiler version" -> dotty.tools.dotc.config.Properties .versionString,
166
166
" settings" -> settings.map(showSetting).mkString(" " ),
167
167
))
168
+ val fileAReportMsg =
169
+ if ctx.phase.isInstanceOf [plugins.PluginPhase ]
170
+ then
171
+ s """ | An unhandled exception was thrown in the compiler plugin named " ${ctx.phase.megaPhase}".
172
+ | Please report the issue to the plugin's maintainers.
173
+ | For non-enriched exceptions, compile with -Xno-enrich-error-messages.
174
+ | """ .stripMargin
175
+ else
176
+ s """ | An unhandled exception was thrown in the compiler.
177
+ | Please file a crash report here:
178
+ | https://github.com/scala/scala3/issues/new/choose
179
+ | For non-enriched exceptions, compile with -Xno-enrich-error-messages.
180
+ | """ .stripMargin
168
181
s """
169
182
| $errorMessage
170
183
|
171
- | An unhandled exception was thrown in the compiler.
172
- | Please file a crash report here:
173
- | https://github.com/scala/scala3/issues/new/choose
174
- | For non-enriched exceptions, compile with -Xno-enrich-error-messages.
184
+ | $fileAReportMsg
175
185
|
176
186
| $info1
177
187
| """ .stripMargin
You can’t perform that action at this time.
0 commit comments