From 08c053b71746337fcb8321433c97924cbcaa03a5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Dec 2019 11:31:17 +0100 Subject: Now uses error output for errors --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index e66abf3..54f8a0f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,11 +28,11 @@ int main(int argc, const char *argv[]) { while (true) { while (lowbat.jo_fetchBatlvl() < 15 && !lowbat.jo_fetchAcstat()) { if (lowbat.jo_notify()) { - cout << "Error: could not use notify-send" << endl; + cerr << "Error: could not use notify-send" << endl; return 3; } if (speaks && lowbat.jo_speak()) { - cout << "Error: could not use espeak" << endl; + cerr << "Error: could not use espeak" << endl; } cout << "Sleep for 20s" << endl; sleep_for(seconds(20)); -- cgit v1.2.3