From 83c14cbad2d7d403b08efbb3cf900df9b52b4938 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 9 Nov 2020 14:51:34 +0300 Subject: Add spiral errors --- sync_worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sync_worker.go') diff --git a/sync_worker.go b/sync_worker.go index 56953fe6..a9c53553 100755 --- a/sync_worker.go +++ b/sync_worker.go @@ -133,7 +133,7 @@ func (tw *syncWorker) ExecWithContext(ctx context.Context, p Payload) (Payload, } func (tw *syncWorker) execPayload(p Payload) (Payload, error) { - const op = errors.Op("exec_payload") + const op = errors.Op("exec payload") // two things; todo: merge if err := sendControl(tw.w.Relay(), p.Context); err != nil { return EmptyPayload, errors.E(op, err, "header error") @@ -156,7 +156,7 @@ func (tw *syncWorker) execPayload(p Payload) (Payload, error) { } if pr.HasFlag(goridge.PayloadError) { - return EmptyPayload, errors.E(op, errors.Exec, errors.Str(string(rsp.Context))) //ExecError(rsp.Context) + return EmptyPayload, errors.E(op, errors.Exec, errors.Str(string(rsp.Context))) } // add streaming support :) -- cgit v1.2.3