diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-30 11:31:17 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-30 11:31:17 +0100 |
commit | 08c053b71746337fcb8321433c97924cbcaa03a5 (patch) | |
tree | 5971608ef458fa06f7e9295da33b8a9361445df6 /src/main.cpp | |
parent | Man update (diff) | |
download | lowbat-gnu-08c053b71746337fcb8321433c97924cbcaa03a5.tar.gz lowbat-gnu-08c053b71746337fcb8321433c97924cbcaa03a5.tar.bz2 lowbat-gnu-08c053b71746337fcb8321433c97924cbcaa03a5.tar.xz lowbat-gnu-08c053b71746337fcb8321433c97924cbcaa03a5.tar.zst lowbat-gnu-08c053b71746337fcb8321433c97924cbcaa03a5.zip |
Now uses error output for errors
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |