mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
refine package prefix cleanup
This commit is contained in:
parent
b50d692128
commit
01380177b8
@ -38,9 +38,8 @@ func (err *Error) pkgPath() string {
|
||||
return ""
|
||||
}
|
||||
path := reflect.TypeOf(err.pathObj).PkgPath()
|
||||
if strings.HasPrefix(path, "github.com/v2fly/v2ray-core/v4/") {
|
||||
return path[31:]
|
||||
}
|
||||
path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4")
|
||||
path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4/")
|
||||
return path
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user