mirror of https://github.com/v2ray/v2ray-core
fix error generation
parent
98b5b415f0
commit
14633ece42
|
@ -40,5 +40,5 @@ func main() {
|
||||||
fmt.Fprintln(file, "")
|
fmt.Fprintln(file, "")
|
||||||
fmt.Fprintln(file, "import \"v2ray.com/core/common/errors\"")
|
fmt.Fprintln(file, "import \"v2ray.com/core/common/errors\"")
|
||||||
fmt.Fprintln(file, "")
|
fmt.Fprintln(file, "")
|
||||||
fmt.Fprintln(file, "func newError(values ...interface{}) *errors.Error { return newError(values...).Path("+pathStr+") }")
|
fmt.Fprintln(file, "func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("+pathStr+") }")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue