mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
refine error messages
This commit is contained in:
parent
d9ea65696a
commit
cdcf72cbe7
@ -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 {
|
||||
|
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user