Skip to content

Commit

Permalink
outofband/action handler: update error to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed May 8, 2023
1 parent f932a04 commit d7de3d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/outofband/action_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var (
ErrActionTypeAssertion = errors.New("error occurred in action object type assertion")
ErrContextCancelled = errors.New("context canceled")
ErrUnexpected = errors.New("unexpected error occurred")
ErrInstalledFirmwareEqual = errors.New("installed firmware equal")
ErrInstalledFirmwareEqual = errors.New("installed and expected firmware equal")
ErrInstalledVersionUnknown = errors.New("installed version unknown")
ErrComponentNotFound = errors.New("component not found for firmware install")
)
Expand Down Expand Up @@ -192,9 +192,9 @@ func (h *actionHandler) checkCurrentFirmware(a sw.StateSwitch, c sw.TransitionAr
"component": action.Firmware.Component,
"vendor": action.Firmware.Vendor,
"models": action.Firmware.Models,
"plannedVersion": action.Firmware.Version,
"expectedVersion": action.Firmware.Version,
"installedVersion": component.FirmwareInstalled,
}).Error("Installed firmware version equals planned - set TaskParameters.Force=true to disable this check")
}).Error("Installed firmware version equals expected - set TaskParameters.Force=true to disable this check")

return ErrInstalledFirmwareEqual
}
Expand Down

0 comments on commit d7de3d2

Please sign in to comment.