Improve error when package not found in PACKAGE_DIRS locally

This commit is contained in:
Avital Oliver
2013-03-01 21:20:33 -08:00
committed by David Glasser
parent a919cb3499
commit dfd837934e

View File

@@ -57,12 +57,7 @@ var warehouse = module.exports = {
releaseManifestByVersion: function(release) {
if (release === 'none') {
if (!files.usesWarehouse()) {
// safety belt so that we ensure we're running all packages locally,
// and that we don't springboard
return {
engine: 'none',
packages: {}
};
return null;
} else {
throw new Error("The 'none' release can only be used from a git checkout of Meteor");
}