diff options
| author | Dan Engelbrecht <[email protected]> | 2026-01-15 15:05:52 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-01-15 15:05:52 +0100 |
| commit | f5857f5885a37b6f0de6d2653ddc3298d4554521 (patch) | |
| tree | cb931f711776b36e06918f78f3d17943fd75117e /src/zen/authutils.cpp | |
| parent | use current locale when converting wide char command line arguments to string... (diff) | |
| download | archived-zen-f5857f5885a37b6f0de6d2653ddc3298d4554521.tar.xz archived-zen-f5857f5885a37b6f0de6d2653ddc3298d4554521.zip | |
throw error on bad oidctoken-exe-path (#713)
* throw error on bad oidctoken-exe-path
Diffstat (limited to 'src/zen/authutils.cpp')
| -rw-r--r-- | src/zen/authutils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zen/authutils.cpp b/src/zen/authutils.cpp index fdcb8e15d..31db82efd 100644 --- a/src/zen/authutils.cpp +++ b/src/zen/authutils.cpp @@ -283,6 +283,10 @@ AuthCommandLineOptions::ParseOptions(cxxopts::Options& Ops, ClientSettings.AccessTokenProvider = httpclientauth::CreateFromOidcTokenExecutable(OidcTokenExePath, HostUrl, Quiet, m_OidcTokenUnattended, Hidden); } + else if (!m_OidcTokenAuthExecutablePath.empty()) + { + throw OptionParseException(fmt::format("'--oidctoken-exe-path' ('{}') does not exist", m_OidcTokenAuthExecutablePath), Ops.help()); + } if (!ClientSettings.AccessTokenProvider) { |