From bb8b9a7cb4fde936d98702a68a7407520e7709d0 Mon Sep 17 00:00:00 2001 From: Joakim Johansson Date: Tue, 26 Jun 2018 20:41:06 +0200 Subject: [PATCH] Fixing typing error? "hadErr" should be "err" to work. Small thing but gave me an error because hadErr was undefined. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 058ad0b..824a75f 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ Stores the remote file directly in the given local path. ```javascript ftp.get("remote/file.txt", "local/file.txt", err => { - if (hadErr) { + if (err) { return console.error("There was an error retrieving the file."); } console.log("File copied successfully!");