if render_loop raises a general exception, it's considered fatal now
this is how some misconfiguration is caught, so *some* must be fatal
This commit is contained in:
@@ -17,6 +17,7 @@ import itertools
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
import random
|
import random
|
||||||
import functools
|
import functools
|
||||||
@@ -957,8 +958,9 @@ class TileSet(object):
|
|||||||
# get_chunk()
|
# get_chunk()
|
||||||
logging.debug("Skipping the render of corrupt chunk at %s,%s and moving on.", chunkx, chunkz)
|
logging.debug("Skipping the render of corrupt chunk at %s,%s and moving on.", chunkx, chunkz)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logging.warning("Could not render chunk %s,%s for some reason. I'm going to ignore this and continue", chunkx, chunkz)
|
logging.error("Could not render chunk %s,%s for some reason. This is likely a render primitive option error.", chunkx, chunkz)
|
||||||
logging.debug("Full error was:", exc_info=1)
|
logging.error("Full error was:", exc_info=1)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
## Semi-handy routine for debugging the drawing routine
|
## Semi-handy routine for debugging the drawing routine
|
||||||
## Draw the outline of the top of the chunk
|
## Draw the outline of the top of the chunk
|
||||||
|
|||||||
Reference in New Issue
Block a user