aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/cache.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-08 09:18:31 +0200
committerGitHub <[email protected]>2023-05-08 09:18:31 +0200
commitb4dd4279139f6496eace81723d0b20aa1275324e (patch)
treeccd102edcbea9e127ee11a3cf890f00ceb15ad35 /src/zen/cmds/cache.cpp
parent247 complete httpclient implementation (#269) (diff)
downloadarchived-zen-b4dd4279139f6496eace81723d0b20aa1275324e.tar.xz
archived-zen-b4dd4279139f6496eace81723d0b20aa1275324e.zip
replace use of cxxopts::OptionParseException in our code
later versions of cxxopts changed the signatures of exceptions. This change adds zen::OptionParseException to replace it
Diffstat (limited to 'src/zen/cmds/cache.cpp')
-rw-r--r--src/zen/cmds/cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zen/cmds/cache.cpp b/src/zen/cmds/cache.cpp
index 495662d2f..0de3f8bc3 100644
--- a/src/zen/cmds/cache.cpp
+++ b/src/zen/cmds/cache.cpp
@@ -2,6 +2,7 @@
#include "cache.h"
+#include <zencore/except.h>
#include <zencore/filesystem.h>
#include <zencore/logging.h>
#include <zenhttp/httpcommon.h>
@@ -36,7 +37,7 @@ DropCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
if (m_NamespaceName.empty())
{
- throw cxxopts::OptionParseException("Drop command requires a namespace");
+ throw zen::OptionParseException("Drop command requires a namespace");
}
cpr::Session Session;