change warning to tell about --reset

This commit is contained in:
Jonathan Rainville 2018-05-09 08:26:51 -04:00
parent 46e1ccd81b
commit 92c8d70dd5
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
});
};