-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref. eng/recordflux/RecordFlux#1620
- Loading branch information
Showing
9 changed files
with
156 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,23 @@ | |
import sys | ||
import traceback | ||
import types | ||
from typing import Callable, Optional | ||
from typing import Callable, Final, Optional | ||
|
||
from rflx.version import version | ||
from rflx.version import is_gnat_tracker_release, version | ||
|
||
BUG_BOX_MSG_GITHUB: Final = """ | ||
A bug was detected. Please report this issue on GitHub: | ||
https://github.com/AdaCore/RecordFlux/issues/new?labels=bug | ||
""" | ||
|
||
BUG_BOX_MSG_GNAT_TRACKER: Final = """ | ||
A bug was detected. Please submit a bug report using GNATtracker at | ||
https://support.adacore.com/csm by logging in and clicking the | ||
'Create A New Case' button. Alternatively, submit a bug report by email to | ||
[email protected], including your account number #xxxx in the subject line. | ||
Use a subject line meaningful to you and us to track the bug. | ||
""" | ||
|
||
|
||
class FatalErrorHandler: | ||
|
@@ -47,10 +61,8 @@ def fatal_error_message(unsafe: bool) -> str: | |
{traceback.format_exc()} | ||
---------------------------------------------------------------------------- | ||
A bug was detected. Please report this issue on GitHub: | ||
https://github.com/AdaCore/RecordFlux/issues/new?labels=bug | ||
{BUG_BOX_MSG_GNAT_TRACKER if is_gnat_tracker_release() else BUG_BOX_MSG_GITHUB} | ||
Include the complete content of the bug box shown above and all input files | ||
in the report.""" | ||
in the report. Use plain ASCII or MIME attachment(s).""" | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters