fix(module): info about missing exchange module added
This commit is contained in:
parent
bcf565e158
commit
c2bfa215c0
1 changed files with 6 additions and 1 deletions
|
|
@ -21,7 +21,12 @@ var Trader = module.exports = function (db) {
|
|||
};
|
||||
|
||||
Trader.prototype._findExchange = function (name) {
|
||||
try {
|
||||
return require('lamassu-' + name);
|
||||
|
||||
} catch(_) {
|
||||
throw new Error(name + ' module is not installed. Try running `npm install --save lamassu-' + name + '` first');
|
||||
}
|
||||
};
|
||||
|
||||
Trader.prototype._findTicker = function (name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue