mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/errors: add shared error for unknown login flow ID
This commit is contained in:
parent
d575cc79ef
commit
c8e197a4f9
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ var (
|
|||
ErrPowerLevelsNotSupported error = WrapErrorInStatus(errors.New("this bridge does not support changing group power levels")).WithIsCertain(true).WithErrorAsMessage().WithSendNotice(false)
|
||||
)
|
||||
|
||||
// Common login interface errors
|
||||
var (
|
||||
ErrInvalidLoginFlowID error = RespError(mautrix.MNotFound.WithMessage("Invalid login flow ID"))
|
||||
)
|
||||
|
||||
// RespError is a class of error that certain network interface methods can return to ensure that the error
|
||||
// is properly translated into an HTTP error when the method is called via the provisioning API.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue