From 29b7725597ed7752f87bc5a5a78af9c39ed345d7 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 3 Sep 2018 11:30:55 -0700 Subject: [PATCH] Continue when blacklist is unavailable --- modules/middleware/checkBlacklist.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/middleware/checkBlacklist.js b/modules/middleware/checkBlacklist.js index 3cdc29b..1ce9666 100644 --- a/modules/middleware/checkBlacklist.js +++ b/modules/middleware/checkBlacklist.js @@ -14,11 +14,10 @@ function checkBlacklist(req, res, next) { } }, error => { - console.error(error); + console.error("Unable to fetch the blacklist: %s", error); - res.status(500).send({ - error: "Unable to fetch the blacklist" - }); + // Continue anyway. + next(); } ); }