From 481e45fb644ac88fa77ef35643b793f179fe6859 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 14 Sep 2021 06:02:55 -0700 Subject: [PATCH] limit parse error msg lenght --- jc/parsers/ls_s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/ls_s.py b/jc/parsers/ls_s.py index f097fdd2..ccb94d45 100644 --- a/jc/parsers/ls_s.py +++ b/jc/parsers/ls_s.py @@ -138,7 +138,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()}') + raise ParseError(f'Unable to parse line: {line.strip()[:40]}') parsed_line = line.strip().split(maxsplit=8) output_line = {}