fix blockcypher bug

This commit is contained in:
Josh Harvey 2017-10-21 18:33:20 +03:00
parent 86955da2ad
commit 18a702dbf8
3 changed files with 7 additions and 11 deletions

View file

@ -197,7 +197,7 @@ function errorHandler (err, req, res, next) {
const json = {error: err.message}
logger.error(err)
if (statusCode >= 400) logger.error(err)
return res.status(statusCode).json(json)
}