BlueMap

BlueMap

98.2k Downloads

When erroring due to invalid config files, specify which files caused the error

AfroThundr3007730 opened this issue ยท 2 comments

commented

What i did / Steps to reproduce

Upgraded a bluemap docker container from 5.5 to 5.11.

Expected result

Container starts fine or produces an actionable error message.

Actual result

Got generic error message about map configs needing to be modified.

Context

Instead of just printing an error about some of the config files needing to be updated, the program should list the offending config files explicitly, and if possible, the specific lines that caused the error. This would save people a lot of time if they have dozens (or more) of world configs in use.

commented

Please add the "generic error" (log/stack-trace) that you got.

commented

Error message looks like this now (next release):

################################
 There is a problem with your BlueMap setup!

 Failed to load map-config:
 /path/to/config/bluemap/maps/world.conf
 
 Your map-configuration is outdated!
 Looks like you updated BlueMap but did not follow the upgrade-instructions correctly.
 To fix your config, make sure to follow all relevant upgrade-instructions from BlueMap's changelogs.
 You can find them here: https://github.com/BlueMap-Minecraft/BlueMap/releases
################################

I hope that resolves your issue.