From c08a1e0b1124cf0b7c4bb80e09717134540ec593 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 16 Mar 2018 10:27:52 -0400 Subject: Fix build after c/image changes Signed-off-by: Matthew Heon Closes: #505 Approved by: rhatdan --- cmd/podman/login.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/login.go b/cmd/podman/login.go index f57f34532..a3eb60ea4 100644 --- a/cmd/podman/login.go +++ b/cmd/podman/login.go @@ -67,7 +67,10 @@ func loginCmd(c *cli.Context) error { sc := common.GetSystemContext("", c.String("authfile"), false) // username of user logged in to server (if one exists) - userFromAuthFile := config.GetUserLoggedIn(sc, server) + userFromAuthFile, err := config.GetUserLoggedIn(sc, server) + if err != nil { + return errors.Wrapf(err, "error getting logged-in user") + } username, password, err := getUserAndPass(c.String("username"), c.String("password"), userFromAuthFile) if err != nil { return errors.Wrapf(err, "error getting username and password") -- cgit v1.2.3-54-g00ecf