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

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))
if value > err[name]:
if name in err and err[name] >= value:
return err
err[name] = value
print("{}: {}".format(name, value))
for (nm, v) in err.items():
print("{}: {}".format(nm, v))
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