Correct error reporting.