diff --git a/jc/parsers/ls_s.py b/jc/parsers/ls_s.py index 96037a08..d230e924 100644 --- a/jc/parsers/ls_s.py +++ b/jc/parsers/ls_s.py @@ -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 = {} diff --git a/jc/utils.py b/jc/utils.py index a7ffa074..0a5c0476 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -196,7 +196,7 @@ def stream_error(e, quiet, line): '_meta': { 'success': False, - 'error': 'error parsing line', + 'error': f'{e}', 'line': line.strip() } }