From ff756da2c560684f40d812d41da271a10871ab16 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sat, 16 Jan 2021 16:39:17 +0100 Subject: [PATCH] Exit 1 on daemon connection failure --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ae7e457..3dd47c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,8 +72,9 @@ fn main() { } } Err(_) => { - println!("Failed to connect to the eww daemon."); - println!("Make sure to start the eww daemon process by running `eww daemon` first."); + eprintln!("Failed to connect to the eww daemon."); + eprintln!("Make sure to start the eww daemon process by running `eww daemon` first."); + std::process::exit(1); } } }