mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Log when a service isn't found
This commit is contained in:
@@ -164,7 +164,10 @@ pub fn service_status(service: String) -> bool {
|
||||
};
|
||||
let my_service = match manager.open_service(service.clone(), ServiceAccess::QUERY_STATUS) {
|
||||
Ok(my_service) => my_service,
|
||||
Err(_e) => return false,
|
||||
Err(_e) => {
|
||||
println!("{} service not found! Not installed?", service);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
let status_result = my_service.query_status();
|
||||
if status_result.is_ok() {
|
||||
|
||||
Reference in New Issue
Block a user