Skip to content

Commit

Permalink
download: show message in white and remove extra newline
Browse files Browse the repository at this point in the history
  • Loading branch information
devmatteini committed Nov 16, 2024
1 parent 2f231b8 commit 9803956
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cli/download_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ impl DownloadHandler {
.map_err(|x| HandlerError::new(x.to_string()));

match install_result {
Ok(output) => spinner
.show_message(&Color::new(&output.to_string()).green().to_string()),
Ok(output) => spinner.show_message(&output.to_string()),
Err(HandlerError::Default(msg)) => error_msg.push(msg),
Err(x) => return Err(x),
}
Expand All @@ -207,7 +206,7 @@ impl DownloadHandler {
return Err(HandlerError::new(message));
}

let message = format!("{}\n", Color::new("Installation completed!").green());
let message = format!("{}", Color::new("Installation completed!").green());
spinner.finish_with_message(&message);
Ok(())
}
Expand Down

0 comments on commit 9803956

Please sign in to comment.