Add name of world to some errors
This commit is contained in:
parent
074a7d23a1
commit
16adb443e0
|
@ -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.",
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue