From 856de37e8e0891e083372c3a15f71d9bb7b7f2a2 Mon Sep 17 00:00:00 2001 From: Giancarlos Salas Date: Wed, 20 Apr 2022 12:18:39 -0500 Subject: [PATCH] Fix abci error response --- cmd/handler/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/handler/query.go b/cmd/handler/query.go index 632f0db..dd79055 100644 --- a/cmd/handler/query.go +++ b/cmd/handler/query.go @@ -38,7 +38,7 @@ func GnoRenderQueryHandler(cli client.ABCIClient) http.HandlerFunc { } if res.Response.Error != nil { - writeError(w, err) + writeError(w, res.Response.Error) return } @@ -58,7 +58,7 @@ func AuthQueryHandler(cli client.ABCIClient) http.HandlerFunc { } if res.Response.Error != nil { - writeError(w, err) + writeError(w, res.Response.Error) return }