// Redirect to the 404 if there's an API error
if (routeData[0] && routeData[0].error) {
let errCode = routeData[0].error;
+ console.error(errCode);
return res.redirect(`/404?err=${errCode}`);
}
</html>
`);
} catch (err) {
- console.log(err);
+ console.error(err);
+ return res.redirect(`/404?err=${err}`);
}
});
choices.unshift({ value: "0", label: i18n.t("all") });
this.communityChoices.setChoices(choices, "value", "label", true);
} catch (err) {
- console.log(err);
+ console.error(err);
}
}, 400),
false