diff --git a/switch-desktop/src/unix/mod.rs b/switch-desktop/src/unix/mod.rs index 62c8dbd..ae5bbdb 100644 --- a/switch-desktop/src/unix/mod.rs +++ b/switch-desktop/src/unix/mod.rs @@ -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; } diff --git a/switch-desktop/src/windows/mod.rs b/switch-desktop/src/windows/mod.rs index 4683816..a9081c9 100644 --- a/switch-desktop/src/windows/mod.rs +++ b/switch-desktop/src/windows/mod.rs @@ -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();