Handle nonstop TUI error

This commit is contained in:
Wildan M 2026-04-05 13:20:08 +07:00
parent e8cb1f6a03
commit b9aee43a09
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -219,6 +219,11 @@ fn main_inner() -> anyhow::Result<()> {
match status {
RecipeStatus::Cached => print_cached(&command, &recipe.name),
RecipeStatus::Done => print_success(&command, &recipe.name),
RecipeStatus::Failed(err) => {
let _ = stderr().write(err.as_bytes());
let _ = stderr().write(b"\n\n");
print_failed(&command, &recipe.name)
}
_ => unreachable!(),
}
}