Skip to content

Commit

Permalink
feat: Add optimized error message to the recipe event (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinash-Sanpala authored Nov 11, 2024
1 parent d05dd03 commit a221c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/installevents/installevents_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pkg/installevents/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ type InstallationStatusError struct {
Details string `json:"details,omitempty"`
// The actual error message.
Message string `json:"message,omitempty"`
// An optimised message for the error.
OptimizedMessage string `json:"optimizedMessage,omitempty"`
}

// InstallationStatusErrorInput - An object that represents a status error whenever an recipe has failed to install.
Expand All @@ -260,4 +262,6 @@ type InstallationStatusErrorInput struct {
Details string `json:"details,omitempty"`
// The actual error message.
Message string `json:"message,omitempty"`
// An optimised message for the error.
OptimizedMessage string `json:"optimizedMessage,omitempty"`
}

0 comments on commit a221c9e

Please sign in to comment.