Added error reporting to config