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:
parent
1b874727e3
commit
95342f6ec9
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue