Skip to content
Snippets Groups Projects
Commit 5a83309a authored by Martin Reinecke's avatar Martin Reinecke
Browse files

nicer error printing

parent 985a0bd9
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,12 @@ nthreads = 0
def update_err(err, name, value):
if name not in err:
err[name] = value
print("{}: {}".format(name, value))
else:
if value > err[name]:
err[name] = value
print("{}: {}".format(name, value))
if name in err and err[name] >= value:
return err
err[name] = value
for (nm, v) in err.items():
print("{}: {}".format(nm, v))
print()
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment