diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 254f5ce8..c016eb3a 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -73,6 +73,7 @@ Blockchain.prototype.run = function() { console.log("===============================================================================".magenta); console.log("===============================================================================".magenta); + this.warnAboutPath(); let address = ''; async.waterfall([ function checkInstallation(next) { @@ -131,6 +132,15 @@ Blockchain.prototype.run = function() { }); }; +Blockchain.prototype.warnAboutPath = function() { + let dappPath = fs.dappPath(''); + if (dappPath.split('/').length > 5) { + console.log("===============================================================================".yellow); + console.log("===========> Path depth is too long ".yellow + dappPath); + console.log("===========> This is known to cause issues with some applications, please consider putting your dapp in a different path".yellow); + } +}; + Blockchain.prototype.isClientInstalled = function(callback) { let versionCmd = this.client.determineVersion(); this.runCommand(versionCmd, {}, (err, stdout, stderr) => {