Commit 2949991d authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files

parser.py: print corrupted line number



This is helpful to debug, especially with large SCT logs.
Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <vincent.stehle@arm.com>
parent 4730e9a9
......@@ -133,8 +133,8 @@ def ekl_parser (file):
tmp_dict = test_parser(split_test, current)
temp_list.append(tmp_dict)
n += 1
except:
print("Line:",split_line)
except Exception:
print(f"Line {i+1}:", split_line)
sys.exit("your log may be corrupted")
else:
logging.error(f"Unparsed line {i} `{line}'")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment