Corrected error reporting.