Explorar el Código

add error message for v5cfg

Shelikhoo hace 4 años
padre
commit
3ebc365230
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  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