Corrected error reporting