Skip to content

Commit 17aaa42

Browse files
committed
Merge pull request #99 from MabOneSdk/dev1-pikumar-git2
Not throwing exception if operaiton status is failed
2 parents 4edcd64 + 25178d9 commit 17aaa42

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletBase.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,7 @@ internal CSMOperationResult TrackOperation(Guid operationId, int checkFrequency
169169

170170
if (response.Status != CSMAzureBackupOperationStatus.InProgress.ToString())
171171
{
172-
if(response.Status == CSMAzureBackupOperationStatus.Failed.ToString())
173-
{
174-
throw new Exception(string.Format("OperationStatus for operaiton id {0} is failed with error : {1}", operationId, response.Error.ToString()));
175-
}
176-
172+
WriteDebug(String.Format("OperationStatus : {0}", response.Status));
177173
break;
178174
}
179175

0 commit comments

Comments
 (0)