clearer error messages on fail to invite bot to space
This commit is contained in:
parent
f99b48af98
commit
2d9cb5f8d9
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue