error response consistency, human readible1

This commit is contained in:
Storme-bit
2026-04-26 23:00:18 -07:00
parent f5011fddca
commit 095c9a623e
7 changed files with 30 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ router.post('/', async (req, res) => {
res.json(result)
} catch (err) {
logger.error(`[orchestration] chat error: `, err.message)
res.status(500).json ({ error: err.message})
res.status(500).json ({ error: 'Chat failed', detail: err.message })
}
});