Corrected error output type mismatch error.