Change format of messages in Builder::fmt
This commit is contained in:
parent
fbfcfa6bce
commit
df2da84a61
1 changed files with 3 additions and 2 deletions
|
|
@ -1130,11 +1130,12 @@ impl Build {
|
|||
let action = action.into().description();
|
||||
let msg = |fmt| format!("{action} stage{actual_stage} {what}{fmt}");
|
||||
let msg = if let Some(target) = target.into() {
|
||||
let build_stage = host_and_stage.stage;
|
||||
let host = host_and_stage.host;
|
||||
if host == target {
|
||||
msg(format_args!(" ({target})"))
|
||||
msg(format_args!(" (stage{build_stage} -> stage{actual_stage}, {target})"))
|
||||
} else {
|
||||
msg(format_args!(" ({host} -> {target})"))
|
||||
msg(format_args!(" (stage{build_stage}:{host} -> stage{actual_stage}:{target})"))
|
||||
}
|
||||
} else {
|
||||
msg(format_args!(""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue