From 6a4192844e712dcdaba9943b9c72c546868de095 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 1 Sep 2023 21:25:17 +0800 Subject: [PATCH] fix: Printf format %s has arg #1 of wrong type int --- model/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/server.go b/model/server.go index b9f148cf..7de56cfa 100644 --- a/model/server.go +++ b/model/server.go @@ -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 == "" {