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