1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-17 16:29:55 -04:00

refine error message

This commit is contained in:
Darien Raymond
2017-03-07 22:08:16 +01:00
parent 514dcffe2e
commit d627638412
5 changed files with 9 additions and 17 deletions

View File

@@ -81,8 +81,7 @@ func (v *Client) Process(ctx context.Context, outboundRay ray.OutboundRay, diale
user := server.PickUser()
rawAccount, err := user.GetTypedAccount()
if err != nil {
log.Warning("Shadowsocks|Client: Failed to get a valid user account: ", err)
return err
return errors.Base(err).Message("Shadowsocks|Client: Failed to get a valid user account.").RequireUserAction()
}
account := rawAccount.(*ShadowsocksAccount)
request.User = user