mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 00:58:58 +01:00
return 404 if errors
This commit is contained in:
parent
d477c04ce4
commit
fdb2c1d12e
1 changed files with 3 additions and 1 deletions
|
@ -375,7 +375,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
lyrics: "",
|
lyrics: "",
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
return res.send("404");
|
renderTemplate(res, req, "404.ejs", {
|
||||||
|
v,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
Loading…
Reference in a new issue