mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-09 23:18:37 +02: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) => {
|
router.post("/", async (req, res) => {
|
||||||
const repoConfig = req.body;
|
const repoConfig = req.body;
|
||||||
|
let data = null;
|
||||||
try {
|
try {
|
||||||
const repository = await repoUtils.getConfig(repoConfig.repoId);
|
const repository = await repoUtils.getConfig(repoConfig.repoId);
|
||||||
const cacheExist = ofs.existsSync(
|
const cacheExist = ofs.existsSync(
|
||||||
@@ -310,7 +310,7 @@ router.post("/", async (req, res) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = {
|
data = {
|
||||||
repoId: repoConfig.repoId,
|
repoId: repoConfig.repoId,
|
||||||
fullName: repoConfig.fullName,
|
fullName: repoConfig.fullName,
|
||||||
status: "preparing",
|
status: "preparing",
|
||||||
|
|||||||
Reference in New Issue
Block a user