return 404 if errors

This commit is contained in:
ashley 2024-09-07 12:54:03 +00:00
parent d477c04ce4
commit fdb2c1d12e

View file

@ -375,7 +375,9 @@ module.exports = function (app, config, renderTemplate) {
lyrics: "",
});
} catch {
return res.send("404");
renderTemplate(res, req, "404.ejs", {
v,
});
}
} catch (error) {
console.error(error);