Standardize error responses with consistent format and human-readable messages (#667)

This commit is contained in:
Thomas Durieux
2026-04-15 09:27:08 +02:00
committed by GitHub
parent f4209110c7
commit 8198a4b44a
10 changed files with 332 additions and 127 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ router.post("/queue/:name/:repo_id", async (req, res) => {
}
res.send("ok");
} catch {
res.status(500).send("error_retrying_job");
res.status(500).json({ error: "error_retrying_job" });
}
}
});