chore: added secondary warning message in renderError

This commit is contained in:
anuraghazra
2020-07-25 13:29:32 +05:30
parent e32ab3f973
commit 6d5a828542
4 changed files with 35 additions and 8 deletions

View File

@@ -33,7 +33,12 @@ module.exports = async (req, res) => {
try {
stats = await fetchStats(username, parseBoolean(count_private));
} catch (err) {
return res.send(renderError(err.message));
return res.send(
renderError(
err.message,
"Make sure the provided username is not an organization"
)
);
}
const cacheSeconds = clampValue(