improved error message of invalid config file