mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
improve error handling
This commit is contained in:
@@ -263,7 +263,7 @@ router.get("/:owner/:repo/readme", async (req, res) => {
|
||||
|
||||
router.post("/", async (req, res) => {
|
||||
const repoConfig = req.body;
|
||||
|
||||
let data = null;
|
||||
try {
|
||||
const repository = await repoUtils.getConfig(repoConfig.repoId);
|
||||
const cacheExist = ofs.existsSync(
|
||||
@@ -310,7 +310,7 @@ router.post("/", async (req, res) => {
|
||||
}
|
||||
}
|
||||
|
||||
const data = {
|
||||
data = {
|
||||
repoId: repoConfig.repoId,
|
||||
fullName: repoConfig.fullName,
|
||||
status: "preparing",
|
||||
|
||||
Reference in New Issue
Block a user