Browse Source

Merge pull request #441 from isocolsky/fix/rate-endpoint

Fix error condition in fiat rate endpoint
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
978712c231
  1. 6
      lib/expressapp.js

6
lib/expressapp.js

@ -508,12 +508,8 @@ ExpressApp.prototype.start = function(opts, cb) {
ts: +req.query.ts, ts: +req.query.ts,
}; };
server.getFiatRate(opts, function(err, rates) { server.getFiatRate(opts, function(err, rates) {
if (err) returnError({ if (err) return returnError(err, res, req);
code: 500,
message: err,
});
res.json(rates); res.json(rates);
res.end();
}); });
}); });
}); });

Loading…
Cancel
Save