Skip to content

Commit

Permalink
Include e.what() in exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadhamzasajjad committed Feb 20, 2024
1 parent bb14539 commit d786bcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/arcticdb/storage/azure/azure_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ void raise_azure_exception(const Azure::Core::RequestFailedException& e) {
}

if((int) status_code >= 500) {
error_message = fmt::format("Unexpected Server Error: AzureError#{} {}: {}",
int(status_code), error_code, e.ReasonPhrase);
error_message = fmt::format("Unexpected Server Error: AzureError#{} {}: {} {}",
int(status_code), error_code, e.ReasonPhrase, e.what());
}
else {
error_message = fmt::format("Unexpected Error: AzureError#{} {}: {}",
int(status_code), error_code, e.ReasonPhrase);
error_message = fmt::format("Unexpected Error: AzureError#{} {}: {} {}",
int(status_code), error_code, e.ReasonPhrase, e.what());
}

raise<ErrorCode::E_UNEXPECTED_AZURE_ERROR>(error_message);
Expand Down

0 comments on commit d786bcc

Please sign in to comment.