Skip to content

Commit 07c4849

Browse files
committed
TailMsgf must format with args
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent e606701 commit 07c4849

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/progress/plain.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ func (p *plainWriter) Events(events []Event) {
5353
}
5454
}
5555

56-
func (p *plainWriter) TailMsgf(m string, args ...interface{}) {
57-
prefix := ""
56+
func (p *plainWriter) TailMsgf(msg string, args ...interface{}) {
57+
msg = fmt.Sprintf(msg, args...)
5858
if p.dryRun {
59-
prefix = api.DRYRUN_PREFIX
59+
msg = api.DRYRUN_PREFIX + msg
6060
}
61-
fmt.Fprintln(p.out, append([]interface{}{prefix, m}, args...)...)
61+
fmt.Fprintln(p.out, msg)
6262
}
6363

6464
func (p *plainWriter) Stop() {

0 commit comments

Comments
 (0)