Skip to content

Commit

Permalink
Clarify REST error messaging. (#5386)
Browse files Browse the repository at this point in the history
Clarify `REST` error messaging.

[sc-58117]

---
TYPE: NO_HISTORY
DESC: Clarify `REST` error messaging.
  • Loading branch information
bekadavis9 authored Nov 27, 2024
1 parent 414a261 commit d766b3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiledb/sm/rest/curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ Status Curl::set_headers(struct curl_slist** headers) const {

// Check for no auth.
if (username == nullptr || password == nullptr)
return LOG_STATUS(
Status_RestError("Cannot set curl auth; either token or "
"username/password must be set."));
return LOG_STATUS(Status_RestError(
"Missing TileDB authentication: either token or username/password "
"must be set using the appropriate configuration parameters."));

std::string basic_auth = username + std::string(":") + password;
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
Expand Down

0 comments on commit d766b3a

Please sign in to comment.