mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Better error when running test-packages for nonexistent packages.
This commit is contained in:
@@ -1881,7 +1881,8 @@ var getTestPackageNames = function (projectContext, packageNames) {
|
||||
version = projectContext.localCatalog.getVersionBySourceRoot(
|
||||
files.pathResolve(p));
|
||||
if (! version) {
|
||||
throw Error("should have been caught when initializing catalog?");
|
||||
buildmessage.error("Package not found in local catalog");
|
||||
return;
|
||||
}
|
||||
if (version.testName) {
|
||||
testPackages.push(version.testName);
|
||||
|
||||
Reference in New Issue
Block a user