From 38f28e313c898b192f8a9a90ced95c4f4658c3ff Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sun, 28 May 2023 21:40:23 +0800 Subject: [PATCH] =?UTF-8?q?windows=E6=9C=8D=E5=8A=A1=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch-desktop/src/windows/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/switch-desktop/src/windows/mod.rs b/switch-desktop/src/windows/mod.rs index 3b14768..b4297e2 100644 --- a/switch-desktop/src/windows/mod.rs +++ b/switch-desktop/src/windows/mod.rs @@ -92,10 +92,11 @@ pub async fn main0(base_args: BaseArgs) { Ok(_) => { //需要检查启动状态 thread::sleep(Duration::from_secs(2)); - println!("{}", style("启动成功(Start successfully)").green()) + println!("{}", style("启动成功(Start successfully)").green()); } Err(e) => { log::error!("{:?}", e); + println!("{}:{}", style("启动失败").red(),e); } } } else { @@ -187,6 +188,7 @@ pub async fn main0(base_args: BaseArgs) { } else { if let Err(e) = install(path, args.auto) { log::error!("{:?}", e); + println!("安装失败:{}",e); } else { println!("{}", style("安装成功(Installation succeeded)").green()) } @@ -199,6 +201,7 @@ pub async fn main0(base_args: BaseArgs) { } if let Err(e) = uninstall() { log::error!("{:?}", e); + println!("卸载失败:{}",e); } else { println!("{}", style("卸载成功(Uninstall succeeded)").green()) } @@ -207,6 +210,7 @@ pub async fn main0(base_args: BaseArgs) { Commands::Config(args) => { if let Err(e) = change(args.auto) { log::error!("{:?}", e); + println!("配置失败:{}",e); } else { println!("{}", style("配置成功(Config succeeded)").green()) }