Merge pull request #810 from akimd/rmi-eol

Remove: add missing eol when --force is passed
This commit is contained in:
Sebastiaan van Stijn 2018-01-16 10:29:46 +01:00 committed by GitHub
commit 3a69e5d265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
return errors.New(msg)
}
fmt.Fprintf(dockerCli.Err(), msg)
fmt.Fprintln(dockerCli.Err(), msg)
}
return nil
}

View File

@ -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",
},
{