Skip to content

Commit

Permalink
Improve adapter warning/install msgs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Mar 2, 2015
1 parent 90fd9da commit dfe6f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors/fatal.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = {
probableAdapterModuleName = 'sails-' + probableAdapterModuleName;
}
log.error('Otherwise, if you\'re trying to use an adapter named `' + adapterId + '`, please run ' +
'`npm install ' + probableAdapterModuleName + '@' + sailsMajorV + '.' + sailsMinorV + '.x`');
'`npm install ' + probableAdapterModuleName + ' --save'/*'@' + sailsMajorV + '.' + sailsMinorV + '.x`'*/);
return _terminateProcess(1);
},

Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/orm/backwards-compatibility/upgrade-datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = function howto_normalizeDatastore(sails){
sails.log.warn('(it has a `registerCollection()` method.)');
sails.log.warn('Since you\'re running Sails v0.10.x, it probably isn\'t going to work.');
sails.log.warn('To attempt to install the updated version of this adapter, run:');
sails.log.warn('npm install ' + connectionObject.adapter + '@0.10.x');
sails.log.warn('npm install ' + connectionObject.adapter + ' --force --save');
return Err.fatal.__InvalidAdapter__(moduleName, 'Adapter is not compatible with the current version of Sails.');
}

Expand Down

0 comments on commit dfe6f45

Please sign in to comment.