1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

enhance ParseError cli message

This commit is contained in:
Kelly Brazil
2022-02-24 20:31:09 -08:00
parent 937fa5aad2
commit 7f409b7082

View File

@ -539,7 +539,7 @@ def main():
utils.error_message([ utils.error_message([
f'Parser issue with {parser_name}:', f'{e.__class__.__name__}: {e}', f'Parser issue with {parser_name}:', f'{e.__class__.__name__}: {e}',
'If this is the correct parser, try setting the locale to C (LANG=C).', 'If this is the correct parser, try setting the locale to C (LANG=C).',
'For details use the -d or -dd option. Use "jc -h" for help.' f'For details use the -d or -dd option. Use "jc -h --{parser_name}" for help.'
]) ])
sys.exit(combined_exit_code(magic_exit_code, JC_ERROR_EXIT)) sys.exit(combined_exit_code(magic_exit_code, JC_ERROR_EXIT))