Fix build

This commit is contained in:
Lunny Xiao 2025-03-11 16:35:11 -07:00
parent 50c828361e
commit 57405c34fc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func parseCompareRouter(router string) (*CompareRouter, error) {
dotTimes := 3
parts := strings.Split(router, "...")
if len(parts) > 2 {
return nil, util.NewSilentWrapErrorf(util.ErrInvalidArgument, "invalid compare router: %s", router)
return nil, util.NewInvalidArgumentErrorf("invalid compare router: %s", router)
}
if len(parts) != 2 {
parts = strings.Split(router, "..")
@ -72,7 +72,7 @@ func parseCompareRouter(router string) (*CompareRouter, error) {
DotTimes: dotTimes,
}, nil
} else if len(parts) > 2 {
return nil, util.NewSilentWrapErrorf(util.ErrInvalidArgument, "invalid compare router: %s", router)
return nil, util.NewInvalidArgumentErrorf("invalid compare router: %s", router)
}
dotTimes = 2
}