use C++ throw methods instead of printf and exit
This commit is contained in:
parent
9655d0c138
commit
0d7a8cca79
3 changed files with 8 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue