[SBI] Log error code description upon query failure

Sometimes (eg res=16) the conn->error buffer is left empty by curl, so
also logging the name of the error code provides some extra useful
information.
This commit is contained in:
Pau Espin Pedrol
2025-05-28 20:40:27 +02:00
committed by Sukchan Lee
parent 73976c938b
commit e93bc6b5c8

View File

@@ -754,7 +754,7 @@ static void check_multi_info(ogs_sbi_client_t *client)
}
} else
ogs_warn("[%d] %s", res, conn->error);
ogs_warn("%s (%d): %s", curl_easy_strerror(res), res, conn->error);
ogs_assert(conn->client_cb);
if (res == CURLE_OK)