Merge pull request #4165 from Dokploy/fix/ntfy-test-error-message

fix: surface actual error message in ntfy test connection
This commit is contained in:
Mauricio Siu
2026-04-05 14:11:39 -06:00
committed by GitHub

View File

@@ -677,7 +677,10 @@ export const notificationRouter = createTRPCRouter({
} catch (error) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error testing the notification",
message:
error instanceof Error
? `Error testing the notification: ${error.message}`
: "Error testing the notification",
cause: error,
});
}