0

Print a more user friendly error message on validation failure

This commit is contained in:
Andrew Chin
2012-01-27 19:37:16 -05:00
parent 1297385148
commit c29c983a79
2 changed files with 8 additions and 2 deletions

View File

@@ -289,7 +289,8 @@ class MultiWorldParser(object):
origs[key + "_orig"] = world[key]
world[key] = val
except Exception as e:
print "Error validating %s: %r" % (key, e)
logging.error("Error validating '%s' option in render definition for '%s':", key, worldname)
logging.error(e)
raise e
world['name'] = worldname
world.update(origs)