0

overviewer.py no longer loops forever if it can't find terrain.png

There's also a more helpful error if any texture can't be found.
Closes #475.
This commit is contained in:
Aaron Griffith
2011-09-07 09:15:21 -04:00
parent f880f01b46
commit 7b634cc434
2 changed files with 9 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ def _find_file(filename, mode="rb", verbose=False):
except (KeyError, IOError):
pass
raise IOError("Could not find the file {0}. Is Minecraft installed? If so, I couldn't find the minecraft.jar file.".format(filename))
raise IOError("Could not find the file `{0}'. You can either place it in the same place as overviewer.py, use --textures-path, or install the Minecraft client.".format(filename))
def _load_image(filename):
"""Returns an image object"""