From c8e197a4f9ee5e121c6dacedb6566e4c95af57df Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 19 Nov 2024 17:07:51 +0200 Subject: [PATCH] bridgev2/errors: add shared error for unknown login flow ID --- bridgev2/errors.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridgev2/errors.go b/bridgev2/errors.go index 55df5357..052a606b 100644 --- a/bridgev2/errors.go +++ b/bridgev2/errors.go @@ -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. //