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

nicer error printing

parent 985a0bd9
...@@ -30,13 +30,12 @@ nthreads = 0 ...@@ -30,13 +30,12 @@ nthreads = 0
def update_err(err, name, value): def update_err(err, name, value):
if name not in err: if name in err and err[name] >= value:
err[name] = value return err
print("{}: {}".format(name, value))
if value > err[name]:
err[name] = value err[name] = value
print("{}: {}".format(name, value)) for (nm, v) in err.items():
print("{}: {}".format(nm, v))
return err 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