Improve reporting of errors in config file routines