mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +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