Skip to content

Commit

Permalink
Add comment to IsContainerNotFound()
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed Jan 20, 2024
1 parent 8a3ea43 commit 22b0f4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/filesystem/azurefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ Status ValidateFileLocation(const AzureLocation& location) {
}

bool IsContainerNotFound(const Storage::StorageException& e) {
// In some situations, only the ReasonPhrase is set and the
// ErrorCode is empty, so we check both.
if (e.ErrorCode == "ContainerNotFound" ||
e.ReasonPhrase == "The specified container does not exist." ||
e.ReasonPhrase == "The specified filesystem does not exist.") {
Expand Down

0 comments on commit 22b0f4a

Please sign in to comment.