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