1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 10:45:22 +00:00

update error message

This commit is contained in:
Darien Raymond 2017-04-09 09:49:19 +02:00
parent 2a51b71ba4
commit 345e43b4c4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -201,7 +201,7 @@ func (v *Handler) Process(ctx context.Context, network net.Network, connection i
ctx, timer := signal.CancelAfterInactivity(ctx, userSettings.PayloadTimeout)
ray, err := dispatcher.Dispatch(ctx, request.Destination())
if err != nil {
return err
return newError("failed to dispatch request to ", request.Destination()).Base(err)
}
input := ray.InboundInput()
@ -225,7 +225,7 @@ func (v *Handler) Process(ctx context.Context, network net.Network, connection i
if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
input.CloseError()
output.CloseError()
return newError("error during processing").Base(err)
return newError("connection ends").Base(err)
}
if err := writer.Flush(); err != nil {