Debug: Block YAML parsing errors are now fatal.

This commit is contained in:
David Vierra 2014-03-04 05:09:23 -10:00
parent 710e3d408a
commit 1fac4deb57

View File

@ -167,8 +167,8 @@ class MCMaterials(object):
self.addYamlBlocks(blockyaml)
except Exception, e:
log.warn(u"Exception while loading block info from %s: %s", f, e)
traceback.print_exc()
log.error(u"Exception while loading block info from %s: %s", f, e)
raise
def addYamlBlocks(self, blockyaml):
self.yamlDatas.append(blockyaml)
@ -176,9 +176,9 @@ class MCMaterials(object):
try:
self.addYamlBlock(block)
except Exception, e:
log.warn(u"Exception while parsing block: %s", e)
traceback.print_exc()
log.warn(u"Block definition: \n%s", pformat(block))
log.error(u"Exception while parsing block: %s", e)
log.error(u"Block definition: \n%s", pformat(block))
raise
def addYamlBlock(self, kw):
blockID = kw['id']