完善错误提示

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) => { Err(e) => {
log::error!("{:?}",e); log::error!("{:?}",e);
println!("文件锁定失败:{:?}", e);
return; return;
} }
}; };
@@ -62,6 +63,7 @@ pub fn main0(base_args: BaseArgs) {
} }
Err(e) => { Err(e) => {
log::error!("{:?}", e); log::error!("{:?}", e);
println!("启动switch失败:{:?}", e);
lock.unlock().unwrap(); lock.unlock().unwrap();
return; return;
} }
+3 -1
View File
@@ -114,7 +114,8 @@ pub fn main0(base_args: BaseArgs) {
lock lock
} }
Err(e) => { Err(e) => {
log::error!("{:?}",e); log::error!("文件锁定失败:{:?}",e);
println!("文件锁定失败:{:?}", e);
return; return;
} }
}; };
@@ -128,6 +129,7 @@ pub fn main0(base_args: BaseArgs) {
} }
Err(e) => { Err(e) => {
log::error!("{:?}", e); log::error!("{:?}", e);
println!("启动switch失败:{:?}", e);
} }
} }
lock.unlock().unwrap(); lock.unlock().unwrap();