mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 23:58:15 +01:00
add try catch :p
This commit is contained in:
parent
5fb0393427
commit
ac905d7e3e
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,7 @@ core.video(v).then((data) => {
|
||||||
|
|
||||||
if (uaos === "Windows XP" || uaos === "Windows Vista") res.redirect("/lite?v=" + req.query.v);
|
if (uaos === "Windows XP" || uaos === "Windows Vista") res.redirect("/lite?v=" + req.query.v);
|
||||||
|
|
||||||
|
try {
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
color: data.color,
|
color: data.color,
|
||||||
color2: data.color2,
|
color2: data.color2,
|
||||||
|
@ -215,6 +216,9 @@ core.video(v).then((data) => {
|
||||||
inv_vid,
|
inv_vid,
|
||||||
lyrics: "",
|
lyrics: "",
|
||||||
});
|
});
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return res.redirect("/?fromerror=41_generic_error");
|
return res.redirect("/?fromerror=41_generic_error");
|
||||||
|
|
Loading…
Reference in a new issue