Change the error type