mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
Rename errors with Error prefix
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
v2net "github.com/v2ray/v2ray-core/common/net"
|
||||
)
|
||||
|
||||
var (
|
||||
RouterNotFound = errors.New("Router not found.")
|
||||
)
|
||||
|
||||
type Router interface {
|
||||
TakeDetour(v2net.Destination) (string, error)
|
||||
}
|
||||
@@ -32,5 +26,5 @@ func CreateRouter(name string, rawConfig interface{}) (Router, error) {
|
||||
if factory, found := routerCache[name]; found {
|
||||
return factory.Create(rawConfig)
|
||||
}
|
||||
return nil, RouterNotFound
|
||||
return nil, ErrorRouterNotFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user