Skip to content

Commit

Permalink
Add a factory method for setting public messages (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs authored Aug 20, 2024
1 parent 7408667 commit cd49394
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oops.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ func Hint(hint string) OopsErrorBuilder {
return new().Hint(hint)
}

// Public sets a message that is safe to show to an end user.
func Public(public string) OopsErrorBuilder {
return new().Public(public)
}

// Owner set the name/email of the collegue/team responsible for handling this error.
// Useful for alerting purpose.
func Owner(owner string) OopsErrorBuilder {
Expand Down

0 comments on commit cd49394

Please sign in to comment.