aboutsummaryrefslogtreecommitdiff
path: root/zenutil/zenserverprocess.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 /zenutil/zenserverprocess.cpp
parentMade logging macros always append `sv` string_view literal suffix (diff)
downloadzen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.tar.xz
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 'zenutil/zenserverprocess.cpp')
-rw-r--r--zenutil/zenserverprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenutil/zenserverprocess.cpp b/zenutil/zenserverprocess.cpp
index 3d8f33559..00f5d4c0d 100644
--- a/zenutil/zenserverprocess.cpp
+++ b/zenutil/zenserverprocess.cpp
@@ -524,7 +524,7 @@ ZenServerInstance::AttachToRunningServer(int BasePort)
if (!State.InitializeReadOnly())
{
// TODO: return success/error code instead?
- throw std::exception("No zen state found");
+ throw std::runtime_error("No zen state found");
}
const ZenServerState::ZenServerEntry* Entry = nullptr;
@@ -541,7 +541,7 @@ ZenServerInstance::AttachToRunningServer(int BasePort)
if (!Entry)
{
// TODO: return success/error code instead?
- throw std::exception("No server found");
+ throw std::runtime_error("No server found");
}
m_Process.Initialize(Entry->Pid);