Add context to 404 error

This commit is contained in:
nolash 2021-11-02 17:55:23 +01:00
parent 1abb642361
commit 8e7c73aff4
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ async function processRequest(req, res) {
}
if (content === undefined) {
console.error('empty content', data);
console.error('empty content', mod, digest, data);
res.writeHead(404, {"Content-Type": "text/plain"});
res.end();
return;