diff --git a/docker.go b/docker.go index f197cf0..7284161 100644 --- a/docker.go +++ b/docker.go @@ -180,10 +180,10 @@ func (p Plugin) Exec() error { // instead of writing to config file directly, using docker's login func if p.BaseImageRegistry != "" { if p.BaseImageUsername == "" { - return fmt.Errorf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.") + fmt.Printf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.") } if p.BaseImagePassword == "" { - return fmt.Errorf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.") + fmt.Printf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.") } var baseConnectorLogin Login baseConnectorLogin.Registry = p.BaseImageRegistry