improve error handling
This commit is contained in:
parent
8446bdd4b6
commit
ce2a1fb19e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user