1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

enhance slurp error message

This commit is contained in:
Kelly Brazil
2024-01-05 16:58:15 -08:00
parent 3399e8551e
commit 73ae1396b9

View File

@ -709,7 +709,8 @@ class JcCli():
"""Slurp output into an array. Only works for single-line strings."""
if self.parser_module and not _parser_is_slurpable(self.parser_module):
utils.error_message([
f'Slurp option not available with the {self.parser_name} parser.'
f'Slurp option not available with the {self.parser_name} parser.',
'Use `jc -hhh` to find compatible parsers.'
])
self.exit_error()