Account for error types equality