Skip to content

Commit 9abe3c2

Browse files
authored
Improve logging when failing to invite users (#169)
1 parent 7b49119 commit 9abe3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/InviteCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class InviteCommand implements ICommand {
102102
await invitePersonToRoom(target, roomId);
103103
} catch (e) {
104104
LogService.error("InviteCommand", e);
105-
await logMessage(LogLevel.ERROR, "InviteCommand", `Error inviting ${target.mxid} / ${target.person.id} to ${roomId} - ignoring`);
105+
await logMessage(LogLevel.ERROR, "InviteCommand", `Error inviting ${target.mxid}/${target.emails} / ${target.person.id} to ${roomId} - ignoring: ${e.message ?? e.statusMessage ?? '(see logs)'}`);
106106
}
107107
}
108108
}

0 commit comments

Comments
 (0)