log error
This commit is contained in:
parent
511a37e740
commit
3ad7bbf1ef
@ -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()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user