Skip to content

Commit aabf3c8

Browse files
vitarbmastermanu
andauthored
fix error message for the reset (#670)
Co-authored-by: mastermanu <[email protected]>
1 parent 993c06a commit aabf3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cli/workflowCommands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ func ResetWorkflow(c *cli.Context) {
13701370
resetType := c.String(FlagResetType)
13711371
extraForResetType, ok := resetTypesMap[resetType]
13721372
if !ok && eventID <= 0 {
1373-
ErrorAndExit("Must specify valid eventId or valid resetType", nil)
1373+
ErrorAndExit(fmt.Sprintf("must specify either valid event_id or reset_type (one of %s)", strings.Join(mapKeysToArray(resetTypesMap), ", ")), nil)
13741374
}
13751375
if ok && len(extraForResetType) > 0 {
13761376
getRequiredOption(c, extraForResetType)

0 commit comments

Comments
 (0)