Skip to content

Commit

Permalink
feat: add additional messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed May 24, 2024
1 parent 8377e46 commit 9ebe88c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions text/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,5 @@ const (
const (
ErrorSystem ID = 5000000 + iota
ErrorSystemGeneric
ErrorSelfServiceNoMethodsAvailable
)
8 changes: 8 additions & 0 deletions text/message_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ func NewErrorSystemGeneric(reason string) *Message {
}),
}
}

func NewErrorSelfServiceNoMethodsAvailable() *Message {
return &Message{
ID: ErrorSelfServiceNoMethodsAvailable,
Text: "No authentication methods are available for this request. Please contact the site or app owner.",
Type: Error,
}
}

0 comments on commit 9ebe88c

Please sign in to comment.