diff --git a/transport/internet/config.go b/transport/internet/config.go index b97246fcd..83f097549 100644 --- a/transport/internet/config.go +++ b/transport/internet/config.go @@ -11,7 +11,7 @@ var ( func RegisterProtocolConfigCreator(protocol TransportProtocol, creator ConfigCreator) error { if _, found := globalTransportConfigCreatorCache[protocol]; found { - return newError("protocol: " + TransportProtocol_name[int32(protocol)]+ " is already registered").AtError() + return newError("protocol ", TransportProtocol_name[int32(protocol)], " is already registered").AtError() } globalTransportConfigCreatorCache[protocol] = creator return nil diff --git a/transport/internet/http/errors.generated.go b/transport/internet/http/errors.generated.go index 3d68c2c5c..d89f957d7 100644 --- a/transport/internet/http/errors.generated.go +++ b/transport/internet/http/errors.generated.go @@ -2,4 +2,6 @@ package http import "v2ray.com/core/common/errors" -func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("Transport", "Internet", "HTTP") } +func newError(values ...interface{}) *errors.Error { + return errors.New(values...).Path("Transport", "Internet", "HTTP") +}