Improve error reporting when there are issues with the config