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.
This commit is contained in:
Mauricio Siu
2026-03-17 22:17:36 -06:00
parent 00f3853bd7
commit ad2e53a67a
2 changed files with 2 additions and 2 deletions
@@ -153,7 +153,7 @@ export const sendDatabaseBackupNotifications = async ({
? [
{
name: decorate("`⚠️`", "Error Message"),
value: `\`\`\`${errorMessage}\`\`\``,
value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``,
},
]
: []),
@@ -161,7 +161,7 @@ export const sendVolumeBackupNotifications = async ({
? [
{
name: decorate("`⚠️`", "Error Message"),
value: `\`\`\`${errorMessage}\`\`\``,
value: `\`\`\`${errorMessage.substring(0, 1010)}\`\`\``,
},
]
: []),