完善错误提示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,8 @@ pub fn main0(base_args: BaseArgs) {
|
||||
lock
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("{:?}",e);
|
||||
log::error!("文件锁定失败:{:?}",e);
|
||||
println!("文件锁定失败:{:?}", e);
|
||||
return;
|
||||
}
|
||||
};
|
||||
@@ -128,6 +129,7 @@ pub fn main0(base_args: BaseArgs) {
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("{:?}", e);
|
||||
println!("启动switch失败:{:?}", e);
|
||||
}
|
||||
}
|
||||
lock.unlock().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user