clearer error messages on fail to invite bot to space

This commit is contained in:
ggurdin 2024-10-22 15:38:56 -04:00
parent f99b48af98
commit 2d9cb5f8d9
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 4 additions and 2 deletions

View file

@ -136,7 +136,8 @@ class NewSpaceController extends State<NewSpace> {
await room.invite(BotName.byEnvironment);
} catch (err) {
ErrorHandler.logError(
e: "Failed to invite pangea bot to space ${room.id}",
e: "Failed to invite pangea bot to new space",
data: {"spaceId": spaceId, "error": err},
);
}
MatrixState.pangeaController.classController

View file

@ -298,7 +298,8 @@ class PangeaController {
await space.invite(BotName.byEnvironment);
} catch (err) {
ErrorHandler.logError(
e: "Failed to invite pangea bot to space ${space.id}",
e: "Failed to invite pangea bot to existing space",
data: {"spaceId": space.id, "error": err},
);
}
}