Skip to content

Commit

Permalink
switch previous error message for unprivileged ports
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Dec 20, 2024
1 parent 88879d2 commit fa28d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ValidatePort(value int) error {
// ValidateUnprivilegedPort ensure port is in the 1024-65535 range
func ValidateUnprivilegedPort(value int) error {
if value > 65535 || value < 1023 {
return fmt.Errorf("error parsing port: %d not a valid unprivileged port number", value)
return fmt.Errorf("port outside of valid port range [1024 - 65535]: %d", value)
}
return nil
}
Expand Down

0 comments on commit fa28d0c

Please sign in to comment.