From 3ebc3652302241039294a0ec3685f1bdeb5f4fb4 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sat, 4 Sep 2021 16:49:07 +0100 Subject: [PATCH] add error message for v5cfg --- infra/conf/v5cfg/errors.generated.go | 9 +++++++++ infra/conf/v5cfg/v5cfg.go | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 infra/conf/v5cfg/errors.generated.go create mode 100644 infra/conf/v5cfg/v5cfg.go diff --git a/infra/conf/v5cfg/errors.generated.go b/infra/conf/v5cfg/errors.generated.go new file mode 100644 index 000000000..65b8de82a --- /dev/null +++ b/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{}) +} diff --git a/infra/conf/v5cfg/v5cfg.go b/infra/conf/v5cfg/v5cfg.go new file mode 100644 index 000000000..0ccde455b --- /dev/null +++ b/infra/conf/v5cfg/v5cfg.go @@ -0,0 +1,3 @@ +package v5cfg + +//go:generate go run github.com/v2fly/v2ray-core/v4/common/errors/errorgen