mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-21 08:46:50 +02:00
Standardize error responses with consistent format and human-readable messages (#667)
This commit is contained in:
@@ -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" });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user