diff options
author | Anton Titov <[email protected]> | 2019-06-29 16:29:26 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-29 16:29:26 +0300 |
commit | 1fc8707eb903be6581ab3f4f42f2ee4b2ac2e156 (patch) | |
tree | 99ce4edecae15fea9fc21f002572333f60a2c7d6 | |
parent | 0c0078fa7f8c83f40fe48849949bec51cc18dc86 (diff) | |
parent | 7742bbd3943fb8eccff0c64716e39f6888fd8a6e (diff) |
Merge pull request #169 from ovr/handler-error
Feature: Handle error
-rw-r--r-- | worker.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -230,7 +230,9 @@ func (w *Worker) execPayload(rqs *Payload) (rsp *Payload, err error) { return nil, errors.Wrap(err, "header error") } - w.rl.Send(rqs.Body, 0) + if err = w.rl.Send(rqs.Body, 0); err != nil { + return nil, errors.Wrap(err, "sender error") + } var pr goridge.Prefix rsp = new(Payload) |