sapling/eden/scm/tests/test-debugcauserusterror.t
Meyer Jacobs f9958ca35a taggederror: introduce category and transience metadata and precedence
Summary:
This change introduces two new metadata types, Category and Transience, and a mechanism for Category to provide a default Fault and Transience, which can be overriden by the user.

Also introduces a mechanism for attempting to log exceptions which occur during exception logging, falling back to the previous behavior of just swallowing the exception on failure.

Reviewed By: DurhamG

Differential Revision: D22677565

fbshipit-source-id: 1cf75ca1e2a65964a0ede1f072439378a46bd391
2020-10-12 17:17:34 -07:00

13 lines
456 B
Perl

$ configure modern
$ newserver master
Test debugcauserusterror error formatting
$ hg debugcauserusterror
abort: intentional error for debugging with message 'intentional_error'
[255]
$ hg debugcauserusterror --traceback
abort: intentional error for debugging with message 'intentional_error'
error tags: error has type name "taggederror::IntentionalError", error is request issue, error is permanent, error is programming issue
[255]