update error logging with error messages