mirror of
https://github.com/Aviortheking/codestats-readme.git
synced 2025-08-07 03:11:59 +00:00
feat: adde CustomError class for better secondary errors (#355)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user