Skip to content

Commit 57405c3

Browse files
committed
Fix build
1 parent 50c8283 commit 57405c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/common/compare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func parseCompareRouter(router string) (*CompareRouter, error) {
5959
dotTimes := 3
6060
parts := strings.Split(router, "...")
6161
if len(parts) > 2 {
62-
return nil, util.NewSilentWrapErrorf(util.ErrInvalidArgument, "invalid compare router: %s", router)
62+
return nil, util.NewInvalidArgumentErrorf("invalid compare router: %s", router)
6363
}
6464
if len(parts) != 2 {
6565
parts = strings.Split(router, "..")
@@ -72,7 +72,7 @@ func parseCompareRouter(router string) (*CompareRouter, error) {
7272
DotTimes: dotTimes,
7373
}, nil
7474
} else if len(parts) > 2 {
75-
return nil, util.NewSilentWrapErrorf(util.ErrInvalidArgument, "invalid compare router: %s", router)
75+
return nil, util.NewInvalidArgumentErrorf("invalid compare router: %s", router)
7676
}
7777
dotTimes = 2
7878
}

0 commit comments

Comments
 (0)