From 14f458213be75943d999289cc528560a5f0dd13a Mon Sep 17 00:00:00 2001 From: "zhaoyi.wu" Date: Wed, 6 Mar 2024 21:54:04 +0800 Subject: [PATCH] feat: Update warning notify when the process module's external::shell error --- yazi-scheduler/src/process/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yazi-scheduler/src/process/process.rs b/yazi-scheduler/src/process/process.rs index db3d531d..8a3ee88a 100644 --- a/yazi-scheduler/src/process/process.rs +++ b/yazi-scheduler/src/process/process.rs @@ -27,13 +27,13 @@ impl Process { Some(code) => format!("Exited with status code: {code}"), None => "Process terminated by signal".to_string(), }; - AppProxy::warn("Process failed", message.as_str()); + AppProxy::notify_warn("Process failed", message.as_str()); } self.succ(task.id)?; } Err(e) => { - self.prog.send(TaskProg::New(task.id, 0))?; - self.fail(task.id, format!("Failed to spawn process: {e}"))?; + AppProxy::notify_warn("Process failed", format!("Failed to spawn process: {e}").as_str()); + self.succ(task.id)?; } } return Ok(AppProxy::resume());