mirror of https://github.com/embarklabs/embark.git
warn about path depth
This commit is contained in:
parent
f2fe9efd22
commit
fe4dd67979
|
@ -73,6 +73,7 @@ Blockchain.prototype.run = function() {
|
||||||
console.log("===============================================================================".magenta);
|
console.log("===============================================================================".magenta);
|
||||||
console.log("===============================================================================".magenta);
|
console.log("===============================================================================".magenta);
|
||||||
|
|
||||||
|
this.warnAboutPath();
|
||||||
let address = '';
|
let address = '';
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function checkInstallation(next) {
|
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) {
|
Blockchain.prototype.isClientInstalled = function(callback) {
|
||||||
let versionCmd = this.client.determineVersion();
|
let versionCmd = this.client.determineVersion();
|
||||||
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
|
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
|
||||||
|
|
Loading…
Reference in New Issue