log error

This commit is contained in:
Marc Planard 2023-06-03 16:36:06 +02:00
parent 511a37e740
commit 3ad7bbf1ef

View File

@ -27,7 +27,14 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
r.store(false, Ordering::SeqCst); r.store(false, Ordering::SeqCst);
}).expect("Error setting Ctrl-C handler"); }).expect("Error setting Ctrl-C handler");
let mut rs = RedisCtrl::new()?; let mut rs = match RedisCtrl::new() {
Ok(rs) => rs,
Err(err) => {
println!("Unable to connect to redis: {:?}", err);
return Err(err)
}
};
let controller = NativeHeliosDacController::new()?; let controller = NativeHeliosDacController::new()?;
let devices = controller.list_devices()?; let devices = controller.list_devices()?;