Skip to content

Commit

Permalink
fix: use friendly error in mise run (#3998)
Browse files Browse the repository at this point in the history
Fixes #3976
  • Loading branch information
jdx authored Jan 8, 2025
1 parent 5c892e1 commit 38e556f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,12 @@ impl Run {
// only show this if it's the first failure, or we haven't killed all the remaining tasks
// otherwise we'll get unhelpful error messages about being killed by mise which we expect
let prefix = task.estyled_prefix();
self.eprint(
&task,
&prefix,
&format!("{} {err:?}", style::ered("ERROR")),
);
let err_body = if SETTINGS.verbose {
format!("{} {err:?}", style::ered("ERROR"))
} else {
format!("{} {err}", style::ered("ERROR"))
};
self.eprint(&task, &prefix, &err_body);
}
let _ = tx_err.send((task.clone(), status));
}
Expand Down

0 comments on commit 38e556f

Please sign in to comment.