From 5d9c922b26ff737b05cbe9f2879dcec12de66862 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 7 Oct 2024 16:47:03 +0200 Subject: [PATCH] url format improved --- models/peer/peer_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 38faffb..d1249af 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -135,7 +135,7 @@ func (p *PeerCache) exec(url string, method tools.METHOD, body map[string]interf if err != nil { return err } - if e, ok := m["error"]; ok && e != "" { // Check if there is an error in the response + if e, ok := m["error"]; ok && e != "" && e != "" { // Check if there is an error in the response return errors.New(fmt.Sprintf("%v", m["error"])) } return nil