1
0
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:
Kelly Brazil
2021-09-13 18:30:20 -07:00
parent dab9357d28
commit 55bb71e9d4

View File

@ -90,6 +90,7 @@ parsers = [
'ntpq',
'passwd',
'ping',
'ping-s',
'pip-list',
'pip-show',
'ps',
@ -665,7 +666,7 @@ def main():
else:
streaming_msg = ''
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(
f'{parser_name} parser could not parse the input data. Did you use the correct parser?\n'