From 25cb1f19c9cedf8c1f07bd0ef7aeb55864c397aa Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Thu, 7 Jun 2012 19:56:11 -0400 Subject: [PATCH] if render_loop raises a general exception, it's considered fatal now this is how some misconfiguration is caught, so *some* must be fatal --- overviewer_core/tileset.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/overviewer_core/tileset.py b/overviewer_core/tileset.py index 629f59f..c2a8bec 100644 --- a/overviewer_core/tileset.py +++ b/overviewer_core/tileset.py @@ -17,6 +17,7 @@ import itertools import logging import os import os.path +import sys import shutil import random import functools @@ -957,8 +958,9 @@ class TileSet(object): # get_chunk() logging.debug("Skipping the render of corrupt chunk at %s,%s and moving on.", chunkx, chunkz) 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.debug("Full error was:", exc_info=1) + logging.error("Could not render chunk %s,%s for some reason. This is likely a render primitive option error.", chunkx, chunkz) + logging.error("Full error was:", exc_info=1) + sys.exit(1) ## Semi-handy routine for debugging the drawing routine ## Draw the outline of the top of the chunk