feat: adde CustomError class for better secondary errors (#355)

This commit is contained in:
Anurag Hazra authored and GitHub committed 2020-08-10 19:36:56 +05:30
1 parent 4df291e697
commit ee513240ef
6 files changed
+29 -15

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = async (req, res) => {
try {
topLangs = await fetchTopLanguages(username);
} catch (err) {
return res.send(renderError(err.message));
return res.send(renderError(err.message, err.secondaryMessage));
}
const cacheSeconds = clampValue(