revert removal of error reporting