Skip to content

Commit 387a8e4

Browse files
authored
Merge pull request #35 from Aishwarya-Lad/CI-13924
fix:[CI-13924]: print validation instead of raising error
2 parents 62c3055 + 16924a0 commit 387a8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ func (p Plugin) Exec() error {
180180
// instead of writing to config file directly, using docker's login func
181181
if p.BaseImageRegistry != "" {
182182
if p.BaseImageUsername == "" {
183-
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.")
183+
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.")
184184
}
185185
if p.BaseImagePassword == "" {
186-
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.")
186+
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.")
187187
}
188188
var baseConnectorLogin Login
189189
baseConnectorLogin.Registry = p.BaseImageRegistry

0 commit comments

Comments
 (0)