mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-02 16:21:05 +00:00
simplify error creation
This commit is contained in:
48 files changed
+208
-87
No files matched your search
@@ -2,6 +2,8 @@ package ctlcmd
|
||||
|
||||
import "v2ray.com/core/common/errors"
|
||||
|
||||
type errPathObjHolder struct{}
|
||||
|
||||
func newError(values ...interface{}) *errors.Error {
|
||||
return errors.New(values...).Path("Command", "Platform", "CtlCmd")
|
||||
return errors.New(values...).WithPathObj(errPathObjHolder{})
|
||||
}
|
||||
Reference in new issue
Block a user