Skip to content

Commit f227be2

Browse files
committed
Fixed bug with latest validation code
1 parent baa1e59 commit f227be2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qbcli/config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,7 @@ func GetOptions(ctx context.Context, logger *cliutil.LeveledLogger, input interf
188188
}
189189
}
190190

191-
HandleError(ctx, logger, "input not valid", errors.New(strings.Join(msgs, ", ")))
191+
if len(msgs) > 0 {
192+
HandleError(ctx, logger, "input not valid", errors.New(strings.Join(msgs, ", ")))
193+
}
192194
}

0 commit comments

Comments
 (0)