From 7dab73e9bde3809dd69dbb7cd8fe8c4f76547367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C3=A1vn=C3=ADk?= Date: Mon, 1 Dec 2025 17:10:12 +0100 Subject: [PATCH] More verbose error logging for notification and backups export errors --- app/server/modules/lifecycle/config-export.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/modules/lifecycle/config-export.controller.ts b/app/server/modules/lifecycle/config-export.controller.ts index 5344f0c8..0b85b890 100644 --- a/app/server/modules/lifecycle/config-export.controller.ts +++ b/app/server/modules/lifecycle/config-export.controller.ts @@ -337,7 +337,7 @@ export const configExportController = new Hono() return c.json({ notificationDestinations: await exportEntities(result.data, params) }); } catch (err) { logger.error(`Notification destinations export failed: ${err instanceof Error ? err.message : String(err)}`); - return c.json({ error: "Failed to export notification destinations" }, 500); + return c.json({ error: `Failed to export notification destinations: ${err instanceof Error ? err.message : String(err)}` }, 500); } }) .get("/export/backup-schedules", async (c) => { @@ -365,7 +365,7 @@ export const configExportController = new Hono() return c.json({ backupSchedules }); } catch (err) { logger.error(`Backup schedules export failed: ${err instanceof Error ? err.message : String(err)}`); - return c.json({ error: "Failed to export backup schedules" }, 500); + return c.json({ error: `Failed to export backup schedules: ${err instanceof Error ? err.message : String(err)}` }, 500); } });