Commit 5a83309a authored by Martin Reinecke's avatar Martin Reinecke

nicer error printing

parent 985a0bd9
......@@ -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
......
Markdown is supported
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