Skip to content

Commit

Permalink
Merge pull request #152 from HewlettPackard/release-v0.0.12
Browse files Browse the repository at this point in the history
Release v0.0.12
  • Loading branch information
matthew-richerson authored Sep 8, 2023
2 parents e0df046 + b22d0a4 commit 423255e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha2/resource_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ func (e *ResourceErrorInfo) Error() string {
return fmt.Sprintf("%s error: %s", strings.ToLower(string(e.Type)), message)
}

func (e *ResourceErrorInfo) GetUserMessage() string {
return fmt.Sprintf("%s error: %s", string(e.Type), e.UserMessage)
}

func (e *ResourceError) SetResourceErrorAndLog(err error, log logr.Logger) {
e.SetResourceError(err)
if err == nil {
Expand Down

0 comments on commit 423255e

Please sign in to comment.