1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-03 06:30:42 +00:00
This commit is contained in:
Darien Raymond 2018-03-08 21:07:01 +01:00
parent 51bd5132f6
commit f17b865982
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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")
}