0

Merge PR #1878 from Phoenix616

Add name of world to some errors
This commit is contained in:
Nicolas F
2021-06-04 13:43:07 +02:00
committed by GitHub
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

@@ -1672,7 +1672,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):