Error logging on repositories export failure

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

View file

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