diff options
Diffstat (limited to 'zenutil/zenserverprocess.cpp')
| -rw-r--r-- | zenutil/zenserverprocess.cpp | 4 |
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); |