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:55:09 +01:00 committed by GitHub
parent 1b874727e3
commit 95342f6ec9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,7 +300,7 @@ export const configExportController = new Hono()
return c.json({ volumes: await exportEntities(result.data, params) });
} catch (err) {
logger.error(`Volumes export failed: ${err instanceof Error ? err.message : String(err)}`);
return c.json({ error: "Failed to export volumes" }, 500);
return c.json({ error: `Failed to export volumes: ${err instanceof Error ? err.message : String(err)}` }, 500);
}
})
.get("/export/repositories", async (c) => {