1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

Add exception class name to error message

This commit is contained in:
Kelly Brazil
2021-09-23 13:15:38 -07:00
parent a349fb0bda
commit 224d3d65ad

View File

@ -654,7 +654,7 @@ def main():
else: else:
jc.utils.error_message( jc.utils.error_message(
f'Parser issue with {parser_name}:\n' f'Parser issue with {parser_name}:\n'
f' {e}\n' f' {e.__class__.__name__}: {e}\n'
' For details use the -d or -dd option. Use "jc -h" for help.') ' For details use the -d or -dd option. Use "jc -h" for help.')
sys.exit(combined_exit_code(magic_exit_code, JC_ERROR_EXIT)) sys.exit(combined_exit_code(magic_exit_code, JC_ERROR_EXIT))