chore: added secondary warning message in renderError
This commit is contained in:
1 parent
e32ab3f973
commit
6d5a828542
4 files changed
+35
-8
No files matched your search
+6
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user