More useful error if invalid --chunklist specified.
This commit is contained in:
7
world.py
7
world.py
@@ -121,6 +121,11 @@ class WorldRenderer(object):
|
||||
chunklist.append((base36decode(p[1]), base36decode(p[2]),
|
||||
path))
|
||||
|
||||
if not chunklist:
|
||||
logging.error("No valid chunks specified in your chunklist!")
|
||||
logging.error("HINT: chunks are in your world directory and have names of the form 'c.*.*.dat'")
|
||||
sys.exit(1)
|
||||
|
||||
# Translate to col, row coordinates
|
||||
_, _, _, _, chunklist = _convert_coords(chunklist)
|
||||
|
||||
@@ -205,8 +210,6 @@ class WorldRenderer(object):
|
||||
p = f.split(".")
|
||||
all_chunks.append((base36decode(p[1]), base36decode(p[2]),
|
||||
os.path.join(dirpath, f)))
|
||||
logging.debug((base36decode(p[1]), base36decode(p[2]),
|
||||
os.path.join(dirpath, f)))
|
||||
|
||||
if not all_chunks:
|
||||
logging.error("Error: No chunks found!")
|
||||
|
||||
Reference in New Issue
Block a user