Skip to content

Commit

Permalink
fix: Printf format %s has arg vx3r#1 of wrong type int
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Sep 1, 2023
1 parent 4fd1e34 commit 6a41928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (a Server) IsValid() []error {
}
// check if the listenPort is valid
if a.ListenPort < 0 || a.ListenPort > 65535 {
errs = append(errs, fmt.Errorf("listenPort %s is invalid", a.ListenPort))
errs = append(errs, fmt.Errorf("listenPort %d is invalid", a.ListenPort))
}
// check if the endpoint empty
if a.Endpoint == "" {
Expand Down

0 comments on commit 6a41928

Please sign in to comment.