We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1bd220 commit 42c09b3Copy full SHA for 42c09b3
1 file changed
src/common/api.cpp
@@ -36,6 +36,11 @@ DECLARE_STATIC_LOGGER(logger, "api");
36
37
ptree api_call(const Remote &r, const String &api, ptree request)
38
{
39
+ if (r.user.empty())
40
+ throw std::runtime_error("Remote user is empty");
41
+ if (r.token.empty())
42
+ throw std::runtime_error("Remote token is empty");
43
+
44
request.put("auth.user", r.user);
45
request.put("auth.token", r.token);
46
0 commit comments