From f83aa7b7050da34e191ab26f7ecc696e99f0b62b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 16 Jan 2018 09:29:53 +0100 Subject: [PATCH] Remove: add missing eol when --force is passed Signed-off-by: Akim Demaille --- cli/command/image/remove.go | 2 +- cli/command/image/remove_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/image/remove.go b/cli/command/image/remove.go index 0687134904..9266ca020e 100644 --- a/cli/command/image/remove.go +++ b/cli/command/image/remove.go @@ -81,7 +81,7 @@ func runRemove(dockerCli command.Cli, opts removeOptions, images []string) error if !opts.force || fatalErr { return errors.New(msg) } - fmt.Fprintf(dockerCli.Err(), msg) + fmt.Fprintln(dockerCli.Err(), msg) } return nil } diff --git a/cli/command/image/remove_test.go b/cli/command/image/remove_test.go index 3da6ff50c7..ec8b34945d 100644 --- a/cli/command/image/remove_test.go +++ b/cli/command/image/remove_test.go @@ -98,7 +98,7 @@ func TestNewRemoveCommandSuccess(t *testing.T) { assert.Equal(t, true, options.Force) return []types.ImageDeleteResponseItem{}, notFound{"image1"} }, - expectedStderr: "Error: No such image: image1", + expectedStderr: "Error: No such image: image1\n", }, {