Comparing version 2.2.1 to 2.2.2
@@ -142,4 +142,7 @@ 'use strict'; | ||
var componentConfigFile = findComponentConfigFile(config, component); | ||
if (componentConfigFile === undefined) { | ||
throw new Error(component + ' is not installed. Try running `bower install`.'); | ||
if (!componentConfigFile) { | ||
var error = new Error(component + ' is not installed. Try running `bower install`.'); | ||
error.code = 'PKG_NOT_INSTALLED'; | ||
config.get('on-error')(error); | ||
return; | ||
} | ||
@@ -146,0 +149,0 @@ |
{ | ||
"name": "wiredep", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"main": "./wiredep.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -106,3 +106,5 @@ 'use strict'; | ||
if (!$.fs.existsSync(directory)) { | ||
config.get('on-error')('Cannot find where you keep your Bower packages.'); | ||
var error = new Error('Cannot find where you keep your Bower packages.'); | ||
error.code = 'BOWER_COMPONENTS_MISSING'; | ||
config.get('on-error')(error); | ||
} | ||
@@ -109,0 +111,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34670
757