mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: Update warning notify when the process module's external::shell error
This commit is contained in:
parent
36b3842a38
commit
14f458213b
1 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue