完善错误提示

This commit is contained in:
lubeilin
2023-04-23 17:41:16 +08:00
parent 18df3c2c92
commit c9b1bf5a5e
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -44,6 +44,7 @@ pub fn main0(base_args: BaseArgs) {
}
Err(e) => {
log::error!("{:?}",e);
println!("文件锁定失败:{:?}", e);
return;
}
};
@@ -62,6 +63,7 @@ pub fn main0(base_args: BaseArgs) {
}
Err(e) => {
log::error!("{:?}", e);
println!("启动switch失败:{:?}", e);
lock.unlock().unwrap();
return;
}