1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 02:34:38 -05:00

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: "", lyrics: "",
}); });
} catch { } catch {
return res.send("404"); renderTemplate(res, req, "404.ejs", {
v,
});
} }
} catch (error) { } catch (error) {
console.error(error); console.error(error);