Skip to content

Commit

Permalink
rename help error
Browse files Browse the repository at this point in the history
Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Feb 8, 2021
1 parent 48bd0d3 commit eb8f7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tracee-rules/input.go
Expand Up @@ -15,7 +15,7 @@ import (
tracee "github.com/aquasecurity/tracee/tracee/external"
)

var helpErr = errors.New("user has requested help text")
var errHelp = errors.New("user has requested help text")

type inputFormat uint8

Expand Down Expand Up @@ -98,7 +98,7 @@ func parseTraceeInputOptions(inputOptions []string) (*traceeInputOptions, error)

for i := range inputOptions {
if inputOptions[i] == "help" {
return nil, helpErr
return nil, errHelp
}

kv := strings.Split(inputOptions[i], ":")
Expand Down
2 changes: 1 addition & 1 deletion tracee-rules/main.go
Expand Up @@ -33,7 +33,7 @@ func main() {

var inputs engine.EventSources
opts, err := parseTraceeInputOptions(c.StringSlice("input-tracee"))
if err == helpErr {
if err == errHelp {
printHelp()
return nil
}
Expand Down

0 comments on commit eb8f7db

Please sign in to comment.