Improve error reporting if setting is not found