mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Give feedback on updating packages not in the project
This commit is contained in:
@@ -1948,6 +1948,17 @@ main.registerCommand({
|
||||
upgradePackages = options.args;
|
||||
}
|
||||
|
||||
// Check that every requested package exists
|
||||
var unknownPackages = 0;
|
||||
_.each(upgradePackages, function (packageName) {
|
||||
if (! _.has(versions, packageName)) {
|
||||
Console.error(packageName + ': package is not in the project');
|
||||
unknownPackages++;
|
||||
}
|
||||
});
|
||||
if (unknownPackages)
|
||||
return 1;
|
||||
|
||||
// Call the constraint solver. This should not fail, since we are not adding
|
||||
// any constraints that we didn't have before.
|
||||
var newVersions;
|
||||
|
||||
Reference in New Issue
Block a user