Add name of world to some errors

This commit is contained in:
Phoenix616 2020-11-28 14:40:02 +01:00
parent 074a7d23a1
commit 16adb443e0
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
2 changed files with 2 additions and 2 deletions

View File

@ -513,7 +513,7 @@ def main():
rset = w.get_regionset(render['dimension'][1]) rset = w.get_regionset(render['dimension'][1])
except IndexError: except IndexError:
logging.error("Sorry, I can't find anything to render! Are you sure there are .mca " 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 return 1
if rset is None: # indicates no such dimension was found 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.", logging.warning("Sorry, you requested dimension '%s' for %s, but I couldn't find it.",

View File

@ -1600,7 +1600,7 @@ class RegionSet(object):
x = int(p[1]) x = int(p[1])
y = int(p[2]) y = int(p[2])
if abs(x) > 500000 or abs(y) > 500000: 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)) yield (x, y, os.path.join(self.regiondir, f))
class RegionSetWrapper(object): class RegionSetWrapper(object):