Better error handling in parse_config_file