improve error handling

This commit is contained in:
Mystikfluu 2022-08-26 00:18:24 +02:00
parent 8446bdd4b6
commit ce2a1fb19e

View File

@ -937,7 +937,12 @@ router.get("/*", async function(request, response) {
return
}
console.log(5,"no file found",originalUrl);
try {
response.status(404).send("No file with that name found");
} catch(err) {
console.error(err)
}
});
router.post("/register", async function (req, res) {