diff --git a/common/errors/errors.go b/common/errors/errors.go index 82da2fc49..00ea45408 100644 --- a/common/errors/errors.go +++ b/common/errors/errors.go @@ -38,8 +38,8 @@ func (err *Error) pkgPath() string { return "" } path := reflect.TypeOf(err.pathObj).PkgPath() - path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4") path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4/") + path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4") return path }