diff options
Diffstat (limited to 'src/zenserver')
| -rw-r--r-- | src/zenserver/projectstore/projectstore.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp index 0fe66bdf1..181177653 100644 --- a/src/zenserver/projectstore/projectstore.cpp +++ b/src/zenserver/projectstore/projectstore.cpp @@ -216,11 +216,14 @@ namespace { if (std::string_view OidcExePathString = Cloud["oidc-exe-path"].AsString(); !OidcExePathString.empty()) { std::filesystem::path OidcExePathMaybe(OidcExePathString); - if (!IsFile(OidcExePathMaybe)) + if (IsFile(OidcExePathMaybe)) { - ZEN_WARN("Path to OidcToken executable '{}' can not be reached by server", OidcExePathString); OidcExePath = std::move(OidcExePathMaybe); } + else + { + ZEN_WARN("Path to OidcToken executable '{}' can not be reached by server", OidcExePathString); + } } std::string_view KeyParam = Cloud["key"sv].AsString(); if (KeyParam.empty()) @@ -326,11 +329,14 @@ namespace { if (std::string_view OidcExePathString = Builds["oidc-exe-path"].AsString(); !OidcExePathString.empty()) { std::filesystem::path OidcExePathMaybe(OidcExePathString); - if (!IsFile(OidcExePathMaybe)) + if (IsFile(OidcExePathMaybe)) { - ZEN_WARN("Path to OidcToken executable '{}' can not be reached by server", OidcExePathString); OidcExePath = std::move(OidcExePathMaybe); } + else + { + ZEN_WARN("Path to OidcToken executable '{}' can not be reached by server", OidcExePathString); + } } std::string_view BuildIdParam = Builds["buildsid"sv].AsString(); if (BuildIdParam.empty()) |