Skip to content

Commit

Permalink
Changed CLI progress to print warnings and not only set it as the las…
Browse files Browse the repository at this point in the history
…t message of progress (#1834)
  • Loading branch information
aviramha authored Aug 22, 2023
1 parent 5882543 commit 5615118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+warning-print.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed CLI progress to print warnings and not only set it as the last message of progress
4 changes: 3 additions & 1 deletion mirrord/progress/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ impl Progress for SpinnerProgress {
}

fn warning(&self, msg: &str) {
self.progress.set_message(format!("! {msg}"));
let formatted_message = format!("! {msg}");
self.print(&formatted_message);
self.progress.set_message(formatted_message);
}

fn failure(&mut self, msg: Option<&str>) {
Expand Down

0 comments on commit 5615118

Please sign in to comment.