mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
update streaming error messages
This commit is contained in:
@ -139,7 +139,7 @@ def parse(data, raw=False, quiet=False):
|
||||
continue
|
||||
|
||||
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', line):
|
||||
raise ParseError(f'Unable to parse line: {line.strip()[:40]}')
|
||||
raise ParseError(f'Not ls -l data')
|
||||
|
||||
parsed_line = line.strip().split(maxsplit=8)
|
||||
output_line = {}
|
||||
|
@ -196,7 +196,7 @@ def stream_error(e, quiet, line):
|
||||
'_meta':
|
||||
{
|
||||
'success': False,
|
||||
'error': 'error parsing line',
|
||||
'error': f'{e}',
|
||||
'line': line.strip()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user