From f2e149e1d067f002b539f25b8f60206ddafce8d7 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 12 Feb 2017 13:25:30 +0100 Subject: [PATCH] remove unnecessary error --- common/protocol/user.go | 1 - proxy/shadowsocks/server.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/protocol/user.go b/common/protocol/user.go index 9b34157a..4fc962c0 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 2eca2f60..41e1da69 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()