Skip to content

Commit

Permalink
Don't throw error if upgrading when Sails dep is already v1
Browse files Browse the repository at this point in the history
This is kinda the only way to run the upgrade tool, and it's what we mention in the docs
  • Loading branch information
sgress454 committed Nov 5, 2017
1 parent 0bfc7b5 commit 6646fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/sails-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ module.exports = function () {
throw flaverr('E_SAILS_DEP_MIGHT_BE_TOO_OLD', new Error('this app depends on sails@'+sailsDepSVR+'.'));
}

if (semver.ltr('0.12.9999', sailsDepSVR)) {
throw flaverr('E_SAILS_DEP_IS_ALREADY_V1', new Error('this app already depends on sails@'+sailsDepSVR+'...'));
}
// if (semver.ltr('0.12.9999', sailsDepSVR)) {
// throw flaverr('E_SAILS_DEP_IS_ALREADY_V1', new Error('this app already depends on sails@'+sailsDepSVR+'...'));
// }

console.log();
console.log('----------------------------------------------------');
Expand Down

0 comments on commit 6646fcc

Please sign in to comment.