mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Name the protection that failed.
This commit is contained in:
parent
1c5b49df54
commit
35f59771a9
@ -308,7 +308,7 @@ export class ProtectionManager {
|
|||||||
LogService.error("ProtectionManager", "Error handling protection: " + protection.name);
|
LogService.error("ProtectionManager", "Error handling protection: " + protection.name);
|
||||||
LogService.error("ProtectionManager", "Failed event: " + eventPermalink);
|
LogService.error("ProtectionManager", "Failed event: " + eventPermalink);
|
||||||
LogService.error("ProtectionManager", extractRequestError(e));
|
LogService.error("ProtectionManager", extractRequestError(e));
|
||||||
await this.mjolnir.client.sendNotice(this.mjolnir.managementRoomId, "There was an error processing an event through a protection - see log for details. Event: " + eventPermalink);
|
await this.mjolnir.client.sendNotice(this.mjolnir.managementRoomId, `There was an error processing an event through a protection (${protection.name}) - see log for details. Event: ${eventPermalink}`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user