mirror of https://github.com/docker/cli.git
Merge pull request #810 from akimd/rmi-eol
Remove: add missing eol when --force is passed
This commit is contained in:
commit
3a69e5d265
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue