Changed error type