From 33c7b930acc13148ef6f05df56f9b8a5c3578a57 Mon Sep 17 00:00:00 2001 From: Dany Shaanan Date: Sun, 11 May 2014 12:39:26 +0300 Subject: [PATCH] Fixed: "ReferenceError: error is not defined" --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b60522d1e..5d8c666fa 100644 --- a/README.md +++ b/README.md @@ -107,13 +107,13 @@ clone("https://github.com/nodegit/nodegit", "tmp", null, function(err, repo) { // Look up this known commit. repo.getCommit(sha, function(err, commit) { if (err) { - throw error; + throw err; } // Look up a specific file within that commit. commit.getEntry("README.md", function(err, entry) { if (err) { - throw error; + throw err; } // Get the blob contents from the file.