mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
update and unify the "please file a bug report" message
The new message is: "Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace." 1. In crash logs we used to print a message which points to the llvm bug tracking page. Now it points to the swift.org bug tracking guidelines. 2. Use the same message in all compiler diagnostics which ask the user to file a bug report. rdar://problem/70488534
This commit is contained in:
@@ -2671,6 +2671,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
|
||||
const char *Argv0, void *MainAddr,
|
||||
FrontendObserver *observer) {
|
||||
INITIALIZE_LLVM();
|
||||
llvm::setBugReportMsg(SWIFT_CRASH_BUG_REPORT_MESSAGE "\n");
|
||||
llvm::EnablePrettyStackTraceOnSigInfoForThisThread();
|
||||
|
||||
PrintingDiagnosticConsumer PDC;
|
||||
@@ -2694,8 +2695,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
|
||||
|
||||
DiagnosticInfo errorInfo(
|
||||
DiagID(0), SourceLoc(), DiagnosticKind::Error,
|
||||
"fatal error encountered during compilation; please file a bug report "
|
||||
"with your project and the crash log",
|
||||
"fatal error encountered during compilation; " SWIFT_BUG_REPORT_MESSAGE,
|
||||
{}, SourceLoc(), {}, {}, {}, false);
|
||||
DiagnosticInfo noteInfo(DiagID(0), SourceLoc(), DiagnosticKind::Note,
|
||||
reason, {}, SourceLoc(), {}, {}, {}, false);
|
||||
|
||||
Reference in New Issue
Block a user