Rework error message handling for bad configuration file