Update app/server/modules/lifecycle/config-export.controller.ts

More verbose error handling

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jakub Trávník 2025-12-01 15:53:12 +01:00 committed by GitHub
parent c5c5da78bd
commit 1b874727e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,7 +288,7 @@ export const configExportController = new Hono()
});
} catch (err) {
logger.error(`Config export failed: ${err instanceof Error ? err.message : String(err)}`);
return c.json({ error: "Failed to export config" }, 500);
return c.json({ error: err instanceof Error ? err.message : "Failed to export config" }, 500);
}
})
.get("/export/volumes", async (c) => {