feat: harden webhook error handlin and escape sender labels

This commit is contained in:
neo
2026-04-28 00:25:17 -04:00
parent 734a6cdde3
commit 4e7b4fe662
5 changed files with 43 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ export async function sendWebhook(_: IpcMainInvokeEvent, webhookUrl: string, pay
} catch (error) {
return {
status: -1,
data: String(error)
data: error instanceof Error ? error.message : String(error)
};
}
}