diff --git a/src/controllers/GiteaRepoLatestReleaseController.ts b/src/controllers/GiteaRepoLatestReleaseController.ts index b749860..e52ee25 100644 --- a/src/controllers/GiteaRepoLatestReleaseController.ts +++ b/src/controllers/GiteaRepoLatestReleaseController.ts @@ -32,6 +32,8 @@ export default class GiteaRepoLatestReleaseController extends Controller { data += c; }); r.on('end', async () => { + if (r.statusCode === 404) return next(new NotFoundHttpError('file', req.url)); + try { const releases = JSON.parse(data);