Improve error message for config file.