Browse Source

fix error generation

Darien Raymond 8 năm trước cách đây
mục cha
commit
14633ece42
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/generrorgen/main.go

+ 1 - 1
tools/generrorgen/main.go

@@ -40,5 +40,5 @@ func main() {
 	fmt.Fprintln(file, "")
 	fmt.Fprintln(file, "import \"v2ray.com/core/common/errors\"")
 	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+") }")
 }