also swallow exception when container doesn't exist for DeleteIfExists (#1304)
This commit is contained in:
parent
7615a9ee9b
commit
f935477e66
@ -631,7 +631,8 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
}
|
||||
catch (StorageException& e)
|
||||
{
|
||||
if (e.StatusCode == Core::Http::HttpStatusCode::NotFound && e.ErrorCode == "BlobNotFound")
|
||||
if (e.StatusCode == Core::Http::HttpStatusCode::NotFound
|
||||
&& (e.ErrorCode == "BlobNotFound" || e.ErrorCode == "ContainerNotFound"))
|
||||
{
|
||||
return Azure::Core::Response<Models::DeleteBlobResult>(std::move(e.RawResponse));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user