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 @@ -152,13 +152,23 @@ object report:
152
152
" compiler version" -> dotty.tools.dotc.config.Properties .versionString,
153
153
" settings" -> settings.map(showSetting).mkString(" " ),
154
154
))
155
+ val fileAReportMsg =
156
+ if ctx.phase.isInstanceOf [plugins.PluginPhase ]
157
+ then
158
+ s """ | An unhandled exception was thrown in the compiler plugin named " ${ctx.phase.megaPhase}".
159
+ | Please report the issue to the plugin's maintainers.
160
+ | For non-enriched exceptions, compile with -Xno-enrich-error-messages.
161
+ | """ .stripMargin
162
+ else
163
+ s """ | An unhandled exception was thrown in the compiler.
164
+ | Please file a crash report here:
165
+ | https://github.com/scala/scala3/issues/new/choose
166
+ | For non-enriched exceptions, compile with -Xno-enrich-error-messages.
167
+ | """ .stripMargin
155
168
s """
156
169
| $errorMessage
157
170
|
158
- | An unhandled exception was thrown in the compiler.
159
- | Please file a crash report here:
160
- | https://github.com/lampepfl/dotty/issues/new/choose
161
- | For non-enriched exceptions, compile with -Yno-enrich-error-messages.
171
+ | $fileAReportMsg
162
172
|
163
173
| $info1
164
174
| """ .stripMargin
You can’t perform that action at this time.
0 commit comments