From 7129304a10779710c437f4243a8996c469237224 Mon Sep 17 00:00:00 2001 From: Johnny Hausman Date: Tue, 22 Nov 2016 13:46:32 +0700 Subject: [PATCH] fix mis typed variable names in badLocalDependency() --- errors/warn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errors/warn.js b/errors/warn.js index a0411a7534..7824579d72 100644 --- a/errors/warn.js +++ b/errors/warn.js @@ -45,11 +45,11 @@ module.exports = { badLocalDependency: function(pathTo_localSails, requiredVersion) { log.warn( - 'The local Sails dependency installed at `' + pathTo.localSails + '` ' + + 'The local Sails dependency installed at `' + pathTo_localSails + '` ' + 'has a corrupted, missing, or un-parsable package.json file.' ); log.warn('You may consider running:'); - log.warn('rm -rf ' + pathTo_localSails + ' && npm install sails@' + app.dependencies.sails); + log.warn('rm -rf ' + pathTo_localSails + ' && npm install sails@' + requiredVersion); log.warn(); } };