Skip to content

Commit

Permalink
simplify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 24, 2015
1 parent ee1ad02 commit 8d62e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ function derivePackageConfig(pkg, pjson, override) {
return Promise.resolve(endpoint.processPackageConfig ? endpoint.processPackageConfig(pjson, pkg.exactName) : pjson)
.then(function(pjson) {
if (!pjson)
throw new Error('Registry API error on `' + pkg.name + '`. processPackageConfig must return the processed package.json object.');
throw new Error('processPackageConfig must return the processed package.json object.');
pjson.registry = pjson.registry || pkg.registry;
return pjson;
})
Expand Down

0 comments on commit 8d62e79

Please sign in to comment.