mirror of https://github.com/embarklabs/embark.git
change warning to tell about --reset
This commit is contained in:
parent
cffb0b334e
commit
ed557c6281
|
@ -57,8 +57,9 @@ Blockchain.prototype.runCommand = function(cmd, options) {
|
|||
console.log(("running: " + cmd.underline).green);
|
||||
return shelljs.exec(cmd, options, (err, stdout, _stderr) => {
|
||||
if (err && this.env === 'development' && stdout.indexOf('Failed to unlock developer account') > 0) {
|
||||
console.warn('\nDevelopment blockchain changed to use the --dev option.'.yellow);
|
||||
console.warn('You will need to change your data directory in blockchain.json (datadir)'.yellow);
|
||||
console.warn('\nDevelopment blockchain has changed to use the --dev option.'.yellow);
|
||||
console.warn('You can reset your workspace to fix the problem with'.yellow + ' embark --reset'.cyan);
|
||||
console.warn('Otherwise, you can change your data directory in blockchain.json (datadir)'.yellow);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue