change error type