eminence / Minecraft-Overviewer

Render large resolution images of a Minecraft map with a Google Maps powered interface
GNU General Public License v3.0
13 stars 1 forks source link

Enhance raised exception output #4

Open NoxyNixie opened 12 years ago

NoxyNixie commented 12 years ago

The current exception output is rather vague in various places.

For instance:

raise Exception("Failed to correctly read level.dat") is rather pointless when you have 20 worlds configured.

Or:

raise CorruptRegionError("unsupported chunk compression type: %i" % (compression) Should list chunk coordinates and the world if possible.

Or:

raise CorruptRegionError("chunk length is invalid") Same deal no chunk coordinates or world specified.

And many more of these in various places are very non descriptive and rather pointless without information like mentioned above.