Cleaned up remember-me error handling.
This commit is contained in:
parent
bc0657a702
commit
d874f5e2da
2 changed files with 7 additions and 4 deletions
|
|
@ -64,8 +64,8 @@ module.exports.errorHandler = function(res, msg, type = "Generic", status = 400)
|
|||
* @param {Error} err - Exception to handle
|
||||
*/
|
||||
module.exports.localExceptionHandler = function(err){
|
||||
//If we're being verbose
|
||||
if(config.verbose){
|
||||
//If we're being verbose and this isn't just a basic bitch
|
||||
if(!err.custom && config.verbose){
|
||||
//Log the error
|
||||
module.exports.dumpError(err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue