Skip to content

Commit

Permalink
creusot-setup: Print issues on stderr instead of stdout when bailing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed Feb 3, 2025
1 parent 38a60c9 commit 39e40d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creusot-setup/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub fn creusot_paths() -> anyhow::Result<Paths> {
// warnings) if there's a hard error. Otherwise we're spamming
// testsuite logs, etc.
for issue in &issues {
println!("{issue}")
eprintln!("{issue}")
}
bail!(
"Please run 'cargo creusot setup status' \
Expand Down Expand Up @@ -278,7 +278,7 @@ fn install_tools(paths: &CfgPaths, flags: InstallFlags) -> anyhow::Result<()> {

let issues = diagnostic_config(&paths, &config, false);
for issue in &issues {
println!("{issue}")
eprintln!("{issue}")
}
if issues.iter().any(|issue| issue.error) {
bail!("Aborting")
Expand Down

0 comments on commit 39e40d8

Please sign in to comment.