From 35f59771a9b33010776b9fce3773e3d0918ad1d7 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 19 Sep 2024 16:06:20 +0100 Subject: [PATCH] Name the protection that failed. --- src/protections/ProtectionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protections/ProtectionManager.ts b/src/protections/ProtectionManager.ts index 9bd1e2c..f8c2c74 100644 --- a/src/protections/ProtectionManager.ts +++ b/src/protections/ProtectionManager.ts @@ -308,7 +308,7 @@ export class ProtectionManager { LogService.error("ProtectionManager", "Error handling protection: " + protection.name); LogService.error("ProtectionManager", "Failed event: " + eventPermalink); 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; }