mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
Merge pull request #453 from embark-framework/warn_about_long_paths
warn about path depth
This commit is contained in:
commit
87cd371894
@ -73,6 +73,7 @@ Blockchain.prototype.run = function() {
|
||||
console.log("===============================================================================".magenta);
|
||||
console.log("===============================================================================".magenta);
|
||||
|
||||
this.checkPathLength();
|
||||
let address = '';
|
||||
async.waterfall([
|
||||
function checkInstallation(next) {
|
||||
@ -131,6 +132,15 @@ Blockchain.prototype.run = function() {
|
||||
});
|
||||
};
|
||||
|
||||
Blockchain.prototype.checkPathLength = 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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user