aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds/deploy.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 15:23:47 +0200
committerStefan Boberg <[email protected]>2021-09-15 15:23:47 +0200
commitf34aa060d7da16d4e08644cf8572db979f3ea8d0 (patch)
treec7c5e5f961c971e2c8e93f542241c7817aa9e3fb /zen/cmds/deploy.cpp
parentMade logging macros always append `sv` string_view literal suffix (diff)
downloadarchived-zen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.tar.xz
archived-zen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.zip
Changed `std::exception` into `std::runtime_error` since `std::exception` does not have a constructor which accepts a string argument in the standard (this appears to be an MSVC implementation thing)
Diffstat (limited to 'zen/cmds/deploy.cpp')
-rw-r--r--zen/cmds/deploy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/cmds/deploy.cpp b/zen/cmds/deploy.cpp
index bee7baf90..b8879fefb 100644
--- a/zen/cmds/deploy.cpp
+++ b/zen/cmds/deploy.cpp
@@ -38,10 +38,10 @@ DeployCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
// Validate arguments
if (m_CopySource.empty())
- throw std::exception("No source specified");
+ throw std::runtime_error("No source specified");
if (m_CopyTarget.empty())
- throw std::exception("No target specified");
+ throw std::runtime_error("No target specified");
std::filesystem::path ToPath;
@@ -52,7 +52,7 @@ DeployCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
if (!IsTargetNew && !IsTargetDir)
{
- throw std::exception("Invalid target specification (needs to be a directory)");
+ throw std::runtime_error("Invalid target specification (needs to be a directory)");
}
zen::ExtendableStringBuilder<128> Path8;