Skip to content

Commit

Permalink
Correct error display
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Aug 9, 2023
1 parent a2cd51d commit ca4b67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/redfish/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (c *Conn) FirmwareInstallStatus(ctx context.Context, installVersion, compon
if resp.StatusCode != 200 {
err = errors.Wrap(
bmclibErrs.ErrFirmwareInstall,
"HTTP Error: "+string(resp.StatusCode),
"HTTP Error: "+fmt.Sprint(resp.StatusCode),
)

Check warning on line 183 in providers/redfish/firmware.go

View check run for this annotation

Codecov / codecov/patch

providers/redfish/firmware.go#L179-L183

Added lines #L179 - L183 were not covered by tests

state = "failed"

Check warning on line 185 in providers/redfish/firmware.go

View check run for this annotation

Codecov / codecov/patch

providers/redfish/firmware.go#L185

Added line #L185 was not covered by tests
Expand Down

0 comments on commit ca4b67e

Please sign in to comment.