1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 09:25:23 +00:00

refine error messages

This commit is contained in:
Darien Raymond 2017-04-16 22:48:51 +02:00
parent d9ea65696a
commit cdcf72cbe7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn in
inboundRay, err := dispatcher.Dispatch(ctx, dest)
if err != nil {
return err
return newError("failed to dispatch request").Base(err)
}
requestDone := signal.ExecuteAsync(func() error {

View File

@ -120,7 +120,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
writer = &seqWriter{writer: conn}
}
if err := buf.PipeUntilEOF(timer, input, writer); err != nil {
return err
return newError("failed to process request").Base(err)
}
return nil
})
@ -130,7 +130,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
v2reader := buf.NewReader(conn)
if err := buf.PipeUntilEOF(timer, v2reader, output); err != nil {
return err
return newError("failed to process response").Base(err)
}
return nil
})