Browse Source

add error message for v5cfg

Shelikhoo 4 years ago
parent
commit
3ebc365230
2 changed files with 12 additions and 0 deletions
  1. 9 0
      infra/conf/v5cfg/errors.generated.go
  2. 3 0
      infra/conf/v5cfg/v5cfg.go

+ 9 - 0
infra/conf/v5cfg/errors.generated.go

@@ -0,0 +1,9 @@
+package v5cfg
+
+import "github.com/v2fly/v2ray-core/v4/common/errors"
+
+type errPathObjHolder struct{}
+
+func newError(values ...interface{}) *errors.Error {
+	return errors.New(values...).WithPathObj(errPathObjHolder{})
+}

+ 3 - 0
infra/conf/v5cfg/v5cfg.go

@@ -0,0 +1,3 @@
+package v5cfg
+
+//go:generate go run github.com/v2fly/v2ray-core/v4/common/errors/errorgen