From d760bfb4ef7aa9dab3bca1495eb85729dc9ecb5c Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 25 Oct 2023 14:29:39 +0200 Subject: [PATCH] Improve get resource api error --- updates/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updates/api.go b/updates/api.go index 88513b3a..57b75a3c 100644 --- a/updates/api.go +++ b/updates/api.go @@ -139,7 +139,7 @@ func registerAPIEndpoints() error { // If we could not convert to acceptable format, return an error. if !converted { - http.Error(w, err.Error(), http.StatusNotAcceptable) + http.Error(w, "conversion to requested format not supported", http.StatusNotAcceptable) return } }