From adbab0f5d7c9000c4a444ad7c9c00b7debe9cb76 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 30 Apr 2025 16:13:49 +0200 Subject: [PATCH] added more info on error returned by LaunchPeerExecution() --- models/peer/peer_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 789c0e1..c57e843 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -93,10 +93,10 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string, } mypeer.AddExecution(*pexec) NewShallowAccessor().UpdateOne(mypeer, peerID) // Update the peer in the db - return nil, errors.New("peer is not reachable") + return nil, errors.New("peer is " + peerID + " not reachable") } else { if mypeer == nil { - return nil, errors.New("peer not found") + return nil, errors.New("peer " + peerID + " not found") } // If the peer is reachable, launch the execution url = p.urlFormat((mypeer.Url), dt) + path // Format the URL