mirror of
https://github.com/Aviortheking/codestats-readme.git
synced 2025-08-05 10:21:58 +00:00
feat: adde CustomError class for better secondary errors (#355)
This commit is contained in:
@@ -38,12 +38,7 @@ module.exports = async (req, res) => {
|
||||
parseBoolean(include_all_commits)
|
||||
);
|
||||
} catch (err) {
|
||||
return res.send(
|
||||
renderError(
|
||||
err.message,
|
||||
"Make sure the provided username is not an organization"
|
||||
)
|
||||
);
|
||||
return res.send(renderError(err.message, err.secondaryMessage));
|
||||
}
|
||||
|
||||
const cacheSeconds = clampValue(
|
||||
|
Reference in New Issue
Block a user