mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Merge pull request #2 from badunk/find-readme
Quick fix for bowerJson.find() example
This commit is contained in:
@@ -71,7 +71,7 @@ bowerJson.find('/path/to/folder', function (err, filename) {
|
||||
console.log('Filename: ', filename);
|
||||
|
||||
// Now that we got the filename, we can read its contents
|
||||
bowerJson.read(filename, function () {
|
||||
bowerJson.read(filename, function (err, json) {
|
||||
if (err) {
|
||||
console.error('There was an error reading the file');
|
||||
console.error(err.message);
|
||||
|
||||
Reference in New Issue
Block a user