Handle err in DeleteNamespace
@@ -64,6 +64,14 @@ func (m *azureEventHubNamespaceManager) DeleteNamespace(ctx context.Context, res
resourceGroupName,
namespaceName)
+ if err != nil {
+ return autorest.Response{
+ Response: &http.Response{
+ StatusCode: 500,
+ },
+ }, err
+ }
+
return autorest.Response{Response: future.Response()}, err
}
