From 0d7a8cca790e8fa71a83e4dce09fbe5a0af38cbc Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:17:58 +0200 Subject: use C++ throw methods instead of printf and exit --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') 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) { -- cgit v1.2.3