Browse Source

fix error condition

activeAddress
Ivan Socolsky 9 years ago
parent
commit
b8f51ce756
  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