Skip to content

Commit eeedd44

Browse files
JoshVanLacroca
andauthored
Apply suggestion from @acroca
Co-authored-by: Albert Callarisa <[email protected]> Signed-off-by: Josh van Leeuwen <[email protected]>
1 parent 0d78d2a commit eeedd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func outputFunc(cmd *cobra.Command) *string {
6666
pre := cmd.PreRunE
6767
cmd.PreRunE = func(cmd *cobra.Command, args []string) error {
6868
if !slices.Contains(outputs, outputFormat) {
69-
return errors.New("invalid value for --output. Supported values are 'table', 'wide', 'yaml', 'json'.")
69+
return errors.New("invalid value for --output. Supported values are " + strings.Join(outputs, ", "))
7070
}
7171

7272
if pre != nil {

0 commit comments

Comments
 (0)