Skip to content

Commit

Permalink
Fix typo in invalid version error
Browse files Browse the repository at this point in the history
  • Loading branch information
opoppe committed Apr 30, 2023
1 parent 353790f commit a1609ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/events/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func GetByTriggerAndTransportAndVersion(trigger string, transport string, versio
return latestEventSeen, nil
}

// Error for events with non-existent verison used
// Error for events with non-existent version used
if len(validEventBadVersions) != 0 {
errStr := fmt.Sprintf("Invalid version given. Valid version(s): %v", strings.Join(validEventBadVersions, ", "))
if version == "" {
errStr += "\nUse --verison to specify"
errStr += "\nUse --version to specify"
}
return nil, errors.New(errStr)
}
Expand Down

0 comments on commit a1609ea

Please sign in to comment.