summaryrefslogtreecommitdiff
path: root/internal/discovery
diff options
context:
space:
mode:
Diffstat (limited to 'internal/discovery')
-rw-r--r--internal/discovery/discovery.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go
index cde846c..93b5f4e 100644
--- a/internal/discovery/discovery.go
+++ b/internal/discovery/discovery.go
@@ -169,7 +169,7 @@ func (discovery *Discovery) file(ctx context.Context, jsonFile string, previousV
// Parse JSON to extract version and list
if err = json.Unmarshal(body, structure); err != nil {
- return newUpdate, fmt.Errorf("failed parsing discovery file: '%s' from the server with error: %w", jsonFile, err)
+ return newUpdate, fmt.Errorf("failed parsing discovery file: '%s' from the server with error: %w and body: %s", jsonFile, err, string(body))
}
return newUpdate, nil