diff --git a/common/protocol/user.go b/common/protocol/user.go index 9b34157a1..4fc962c04 100644 --- a/common/protocol/user.go +++ b/common/protocol/user.go @@ -7,7 +7,6 @@ import ( ) var ( - ErrUserMissing = errors.New("User is not specified.") ErrAccountMissing = errors.New("Account is not specified.") ErrNonMessageType = errors.New("Not a protobuf message.") ErrUnknownAccountType = errors.New("Unknown account type.") diff --git a/proxy/shadowsocks/server.go b/proxy/shadowsocks/server.go index 2eca2f601..41e1da69d 100644 --- a/proxy/shadowsocks/server.go +++ b/proxy/shadowsocks/server.go @@ -32,7 +32,7 @@ func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) { return nil, errors.New("Shadowsocks|Server: No space in context.") } if config.GetUser() == nil { - return nil, protocol.ErrUserMissing + return nil, errors.New("Shadowsocks|Server: User is not specified.") } rawAccount, err := config.User.GetTypedAccount()