mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
modify stream_error message
This commit is contained in:
@ -176,7 +176,7 @@ def convert_to_bool(value):
|
|||||||
def stream_error(e, quiet, line):
|
def stream_error(e, quiet, line):
|
||||||
"""reraise the stream exception with annotation or print an error _meta field if quiet=True"""
|
"""reraise the stream exception with annotation or print an error _meta field if quiet=True"""
|
||||||
if not quiet:
|
if not quiet:
|
||||||
e.args = (str(e) + '... Use the quiet option (-q) to ignore errors.',)
|
e.args = (str(e) + '... Use the quiet option (-q) to ignore streaming parser errors.',)
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user