From ad2e53a67a46f320a27f5d69fc379e565e750823 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 17 Mar 2026 22:17:36 -0600 Subject: [PATCH] fix: truncate error message in backup notifications to 1010 characters - Updated the error message formatting in both database and volume backup notification functions to limit the displayed message length, ensuring better readability and preventing overflow. --- packages/server/src/utils/notifications/database-backup.ts | 2 +- packages/server/src/utils/notifications/volume-backup.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/utils/notifications/database-backup.ts b/packages/server/src/utils/notifications/database-backup.ts index 0a5e2f502..39def2db4 100644 --- a/packages/server/src/utils/notifications/database-backup.ts +++ b/packages/server/src/utils/notifications/database-backup.ts @@ -153,7 +153,7 @@ export const sendDatabaseBackupNotifications = async ({ ? [ { name: decorate("`⚠️`", "Error Message"), - value: `\`\`\`${errorMessage}\`\`\``, + value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``, }, ] : []), diff --git a/packages/server/src/utils/notifications/volume-backup.ts b/packages/server/src/utils/notifications/volume-backup.ts index 353afa0a4..7b183c47e 100644 --- a/packages/server/src/utils/notifications/volume-backup.ts +++ b/packages/server/src/utils/notifications/volume-backup.ts @@ -161,7 +161,7 @@ export const sendVolumeBackupNotifications = async ({ ? [ { name: decorate("`⚠️`", "Error Message"), - value: `\`\`\`${errorMessage}\`\`\``, + value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``, }, ] : []),