From c5611f598f63dfb085ead7978d713fa22eaf3829 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 25 Oct 2023 12:13:53 -0600 Subject: [PATCH] Changed the error message when attempting to add redfish endpoint --- internal/api/smd/smd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/smd/smd.go b/internal/api/smd/smd.go index 291ea79..40bcdec 100644 --- a/internal/api/smd/smd.go +++ b/internal/api/smd/smd.go @@ -53,7 +53,7 @@ func AddRedfishEndpoint(data []byte, headers map[string]string) error { if res != nil { statusOk := res.StatusCode >= 200 && res.StatusCode < 300 if !statusOk { - return fmt.Errorf("could not add redfish endpoint") + return fmt.Errorf("returned status code %d when adding endpoint", res.StatusCode) } fmt.Printf("%v (%v)\n%s\n", url, res.Status, string(body)) }