Remove: add missing eol when --force is passed

Signed-off-by: Akim Demaille <akim.demaille@docker.com>
This commit is contained in:
Akim Demaille 2018-01-16 09:29:53 +01:00
parent 1694921047
commit f83aa7b705
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ func runRemove(dockerCli command.Cli, opts removeOptions, images []string) error
if !opts.force || fatalErr { if !opts.force || fatalErr {
return errors.New(msg) return errors.New(msg)
} }
fmt.Fprintf(dockerCli.Err(), msg) fmt.Fprintln(dockerCli.Err(), msg)
} }
return nil return nil
} }

View File

@ -98,7 +98,7 @@ func TestNewRemoveCommandSuccess(t *testing.T) {
assert.Equal(t, true, options.Force) assert.Equal(t, true, options.Force)
return []types.ImageDeleteResponseItem{}, notFound{"image1"} return []types.ImageDeleteResponseItem{}, notFound{"image1"}
}, },
expectedStderr: "Error: No such image: image1", expectedStderr: "Error: No such image: image1\n",
}, },
{ {