summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 16:17:58 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-06 16:17:58 +0200
commit0d7a8cca790e8fa71a83e4dce09fbe5a0af38cbc (patch)
tree240dcca264ed34a76ca68ce07e8794f5380f3a14 /src/main.cpp
parent9655d0c13822bdaa5d86fd1153c27c184fd55253 (diff)
use C++ throw methods instead of printf and exit
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a437430f..0947f375 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -12,7 +12,7 @@ bool ignoreSudo = false;
int main(int argc, char** argv) {
if (!getenv("XDG_RUNTIME_DIR"))
- RIP("XDG_RUNTIME_DIR not set!");
+ throw std::runtime_error("XDG_RUNTIME_DIR is not set!");
// parse some args
for (int i = 1; i < argc; ++i) {