完善错误提示
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user