mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Changed the error message when attempting to add redfish endpoint
This commit is contained in:
parent
47f773df2a
commit
c5611f598f
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue