Continue when blacklist is unavailable

This commit is contained in:
Michael Jackson 2018-09-03 11:30:55 -07:00
parent f138748d1a
commit 29b7725597
1 changed files with 3 additions and 4 deletions

View File

@ -14,11 +14,10 @@ function checkBlacklist(req, res, next) {
} }
}, },
error => { error => {
console.error(error); console.error("Unable to fetch the blacklist: %s", error);
res.status(500).send({ // Continue anyway.
error: "Unable to fetch the blacklist" next();
});
} }
); );
} }