mirror of https://github.com/embarklabs/embark.git
fix tests
This commit is contained in:
parent
7a754ac97f
commit
729c43bae1
|
@ -56,15 +56,15 @@ var Blockchain = function(options) {
|
|||
}
|
||||
|
||||
const spaceMessage = 'The path for %s in blockchain config contains spaces, please remove them';
|
||||
if (this.config.datadir.indexOf(' ') > 0) {
|
||||
if (this.config.datadir && this.config.datadir.indexOf(' ') > 0) {
|
||||
console.error(__(spaceMessage, 'datadir'));
|
||||
process.exit();
|
||||
}
|
||||
if (this.config.account.password.indexOf(' ') > 0) {
|
||||
if (this.config.account.password && this.config.account.password.indexOf(' ') > 0) {
|
||||
console.error(__(spaceMessage, 'account.password'));
|
||||
process.exit();
|
||||
}
|
||||
if (this.config.genesisBlock.indexOf(' ') > 0) {
|
||||
if (this.config.genesisBlock && this.config.genesisBlock.indexOf(' ') > 0) {
|
||||
console.error(__(spaceMessage, 'genesisBlock'));
|
||||
process.exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue