From 5eaad692441338f7305492ccd299ae4613a52a8c Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 24 Aug 2021 22:28:38 +0200 Subject: [PATCH] Fix return codes. Returning 33 does not do anything do anything. because of pango? Or persist? --- statusip.cpp | 2 +- statustemp.cpp | 2 +- statustime.cpp | 2 +- statusweather.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/statusip.cpp b/statusip.cpp index e5f33cb..a419ac8 100644 --- a/statusip.cpp +++ b/statusip.cpp @@ -139,6 +139,6 @@ int main(int argc, char *argv[]) { std::cout << R"()" << e.what() << "" << std::endl; - return 33; + return 1; } } diff --git a/statustemp.cpp b/statustemp.cpp index beb8ac7..85123f6 100644 --- a/statustemp.cpp +++ b/statustemp.cpp @@ -98,6 +98,6 @@ int main(int argc, char *argv[]) { std::cout << R"()" << e.what() << "" << std::endl; - return 33; + return 1; } } diff --git a/statustime.cpp b/statustime.cpp index 0ef8815..4d2caee 100755 --- a/statustime.cpp +++ b/statustime.cpp @@ -69,6 +69,6 @@ int main() { cout << R"(Time script crashed.)" << endl; std::cerr << e.what() << '\n'; - return 33; + return 1; } } diff --git a/statusweather.cpp b/statusweather.cpp index 79da865..e3a4cc0 100644 --- a/statusweather.cpp +++ b/statusweather.cpp @@ -213,6 +213,6 @@ int main() { std::cout << R"()" << e.what() << "" << std::endl; - return 33; + return 1; } }