From 16adb443e0edede4374f575a367e7c90d91fdf0b Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sat, 28 Nov 2020 14:40:02 +0100 Subject: [PATCH] Add name of world to some errors --- overviewer.py | 2 +- overviewer_core/world.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/overviewer.py b/overviewer.py index 29123af..e29c660 100755 --- a/overviewer.py +++ b/overviewer.py @@ -513,7 +513,7 @@ def main(): rset = w.get_regionset(render['dimension'][1]) except IndexError: logging.error("Sorry, I can't find anything to render! Are you sure there are .mca " - "files in the world directory?") + "files in the world directory of %s?" % render['world']) return 1 if rset is None: # indicates no such dimension was found logging.warning("Sorry, you requested dimension '%s' for %s, but I couldn't find it.", diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 70e97ac..da28295 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -1600,7 +1600,7 @@ class RegionSet(object): x = int(p[1]) y = int(p[2]) if abs(x) > 500000 or abs(y) > 500000: - logging.warning("Holy shit what is up with region file %s !?" % f) + logging.warning("Holy shit what is up with region file %s in %s !?" % (f, self.regiondir)) yield (x, y, os.path.join(self.regiondir, f)) class RegionSetWrapper(object):