From ad2e53a67a46f320a27f5d69fc379e565e750823 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 17 Mar 2026 22:17:36 -0600 Subject: [PATCH 1/2] 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)}\`\`\``, }, ] : []), From 9f9c8fccf2d16359fbe7f66068a3d4b69eb8663c Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Tue, 17 Mar 2026 22:47:26 -0600 Subject: [PATCH 2/2] Update packages/server/src/utils/notifications/database-backup.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- packages/server/src/utils/notifications/database-backup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/notifications/database-backup.ts b/packages/server/src/utils/notifications/database-backup.ts index 39def2db4..924b5c7a1 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.substring(0, 1010)}\`\`\``, + value: `\`\`\`${errorMessage.length > 1010 ? `${errorMessage.substring(0, 1010)}...` : errorMessage}\`\`\``, }, ] : []),