From 22b0f4aabcefedadf8bf54dedd44962f4a7e991b Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Fri, 19 Jan 2024 15:12:41 -0300 Subject: [PATCH] Add comment to IsContainerNotFound() --- cpp/src/arrow/filesystem/azurefs.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/src/arrow/filesystem/azurefs.cc b/cpp/src/arrow/filesystem/azurefs.cc index a2022fd6e155c..a5179c22190e1 100644 --- a/cpp/src/arrow/filesystem/azurefs.cc +++ b/cpp/src/arrow/filesystem/azurefs.cc @@ -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.") {