Correct error reporting code.