Files
meteor/packages/modules-runtime/errors/cannotFindMeteorPackage.js
2022-08-18 22:12:07 -03:00

13 lines
324 B
JavaScript

/**
* @description Default error message for when a package is not found
* @param id{string}
* @return {Error}
*/
cannotFindMeteorPackage = function(id) {
var packageName = id.split('/', 2)[1];
return new Error(
'Cannot find package "' + packageName + '". ' +
'Try "meteor add ' + packageName + '".'
);
};