1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-10 22:49:10 -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

@@ -86,8 +86,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
rawAccount, err := request.User.GetTypedAccount()
if err != nil {
log.Warning("VMess|Outbound: Failed to get user account: ", err)
return err
return errors.Base(err).RequireUserAction().Message("VMess|Outbound: Failed to get user account.")
}
account := rawAccount.(*vmess.InternalAccount)
request.Security = account.Security