Skip to content

Commit

Permalink
return error by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbaruni committed Oct 7, 2024
1 parent 8d5afa1 commit 31fe782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ParseLogMode(s string) (LogMode, error) {
return logMode, nil
}
}
return "", fmt.Errorf("%q is an invalid log-mode (valid modes: %q)", s, lm)
return "Error", fmt.Errorf("%q is an invalid log-mode (valid modes: %q)", s, lm)
}

func ParseLogLevel(s string) (zerolog.Level, error) {
Expand Down

0 comments on commit 31fe782

Please sign in to comment.