mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-22 07:18:26 +02:00
Standardize error responses with consistent format and human-readable messages (#667)
This commit is contained in:
1 parent
f4209110c7
commit
8198a4b44a
10 files changed
+332
-127
No files matched your search
@@ -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