mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -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)
|
inboundRay, err := dispatcher.Dispatch(ctx, dest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return newError("failed to dispatch request").Base(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
requestDone := signal.ExecuteAsync(func() error {
|
requestDone := signal.ExecuteAsync(func() error {
|
||||||
|
@ -120,7 +120,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
|
|||||||
writer = &seqWriter{writer: conn}
|
writer = &seqWriter{writer: conn}
|
||||||
}
|
}
|
||||||
if err := buf.PipeUntilEOF(timer, input, writer); err != nil {
|
if err := buf.PipeUntilEOF(timer, input, writer); err != nil {
|
||||||
return err
|
return newError("failed to process request").Base(err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
@ -130,7 +130,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
|
|||||||
|
|
||||||
v2reader := buf.NewReader(conn)
|
v2reader := buf.NewReader(conn)
|
||||||
if err := buf.PipeUntilEOF(timer, v2reader, output); err != nil {
|
if err := buf.PipeUntilEOF(timer, v2reader, output); err != nil {
|
||||||
return err
|
return newError("failed to process response").Base(err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user