mirror of https://github.com/embarklabs/embark.git
take into account errors when determining arguments
This commit is contained in:
parent
b43a766de7
commit
20d7496980
|
@ -59,9 +59,7 @@ class ContractDeployer {
|
|||
} else {
|
||||
nextEachCb(null, arg);
|
||||
}
|
||||
}, (err, realArgs) => {
|
||||
callback(realArgs);
|
||||
});
|
||||
}, callback);
|
||||
}
|
||||
|
||||
checkAndDeployContract(contract, params, callback) {
|
||||
|
@ -75,7 +73,10 @@ class ContractDeployer {
|
|||
|
||||
async.waterfall([
|
||||
function _determineArguments(next) {
|
||||
self.determineArguments(params || contract.args, contract, (realArgs) => {
|
||||
self.determineArguments(params || contract.args, contract, (err, realArgs) => {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
contract.realArgs = realArgs;
|
||||
next();
|
||||
});
|
||||
|
|
|
@ -44,7 +44,6 @@ class DeployManager {
|
|||
return done();
|
||||
}
|
||||
self.logger.info(__("finished deploying contracts"));
|
||||
self.logger.trace(arguments);
|
||||
done(err);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue