Merge pull request #3455 from crigor/fix-pull-message

Fix login message to say pull instead of push.
This commit is contained in:
Victor Vieux 2014-01-06 10:02:32 -08:00
commit 73294b6d56
1 changed files with 1 additions and 1 deletions

View File

@ -1100,7 +1100,7 @@ func (cli *DockerCli) CmdPull(args ...string) error {
if err := pull(authConfig); err != nil { if err := pull(authConfig); err != nil {
if err.Error() == registry.ErrLoginRequired.Error() { if err.Error() == registry.ErrLoginRequired.Error() {
fmt.Fprintln(cli.out, "\nPlease login prior to push:") fmt.Fprintln(cli.out, "\nPlease login prior to pull:")
if err := cli.CmdLogin(endpoint); err != nil { if err := cli.CmdLogin(endpoint); err != nil {
return err return err
} }