diff --git a/code/go/0chain.net/blobbercore/handler/context.go b/code/go/0chain.net/blobbercore/handler/context.go index ead3df7b8..10c1d0ba3 100644 --- a/code/go/0chain.net/blobbercore/handler/context.go +++ b/code/go/0chain.net/blobbercore/handler/context.go @@ -174,7 +174,7 @@ func WithTxHandler(handler func(ctx *Context) (interface{}, error)) func(w http. result, err = handler(ctx) statusCode = ctx.StatusCode - return nil + return err }) if err != nil {