Skip to content

Commit

Permalink
Display error before the extra
Browse files Browse the repository at this point in the history
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
  • Loading branch information
madsmtm and NobodyXu authored Feb 14, 2025
1 parent 5c2816a commit c3c2e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ pub(crate) fn spawn(cmd: &mut Command, cargo_output: &CargoOutput) -> Result<Chi
};
Err(Error::new(
ErrorKind::ToolNotFound,
format!("failed to find tool {:?}{extra}: {e}", cmd.0.get_program()),
format!("failed to find tool {:?}: {e}{extra}", cmd.0.get_program()),
))
}
Err(e) => Err(Error::new(
Expand Down

0 comments on commit c3c2e07

Please sign in to comment.