ソースを参照

fix error generation

Darien Raymond 8 年 前
コミット
14633ece42
1 ファイル変更1 行追加1 行削除
  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+") }")
 }