Skip to content

Commit e9ec116

Browse files
committed
Merge pull request #169 from danyshaanan/master
Fixed: "ReferenceError: error is not defined"
2 parents cfce1e0 + 33c7b93 commit e9ec116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ clone("https://github.com/nodegit/nodegit", "tmp", null, function(err, repo) {
107107
// Look up this known commit.
108108
repo.getCommit(sha, function(err, commit) {
109109
if (err) {
110-
throw error;
110+
throw err;
111111
}
112112

113113
// Look up a specific file within that commit.
114114
commit.getEntry("README.md", function(err, entry) {
115115
if (err) {
116-
throw error;
116+
throw err;
117117
}
118118

119119
// Get the blob contents from the file.

0 commit comments

Comments
 (0)