mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
add streaming ping parser. update streaming exception message
This commit is contained in:
@ -90,6 +90,7 @@ parsers = [
|
|||||||
'ntpq',
|
'ntpq',
|
||||||
'passwd',
|
'passwd',
|
||||||
'ping',
|
'ping',
|
||||||
|
'ping-s',
|
||||||
'pip-list',
|
'pip-list',
|
||||||
'pip-show',
|
'pip-show',
|
||||||
'ps',
|
'ps',
|
||||||
@ -665,7 +666,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
streaming_msg = ''
|
streaming_msg = ''
|
||||||
if getattr(parser.info, 'streaming', None):
|
if getattr(parser.info, 'streaming', None):
|
||||||
streaming_msg = ' Try the quiet option (-q) to ignore errors.\n'
|
streaming_msg = ' Use the -q option to ignore streaming parser errors.\n'
|
||||||
|
|
||||||
jc.utils.error_message(
|
jc.utils.error_message(
|
||||||
f'{parser_name} parser could not parse the input data. Did you use the correct parser?\n'
|
f'{parser_name} parser could not parse the input data. Did you use the correct parser?\n'
|
||||||
|
Reference in New Issue
Block a user