From dfe41b985cf883c3e374ec9897f3adbd84da1308 Mon Sep 17 00:00:00 2001 From: Trishul Date: Wed, 27 Sep 2017 16:32:51 +0530 Subject: [PATCH] Changed variable name Hi @mpj, I was learning promises from your super awesome youtube series \o/, I was testing Promises errors and got stuck with this. Its just nit pik though. --- src/load-image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load-image.js b/src/load-image.js index d741b8b..646d5a3 100644 --- a/src/load-image.js +++ b/src/load-image.js @@ -11,7 +11,7 @@ function loadImage(url) { image.onerror = function() { let message = 'Could not load image at ' + url - reject(new Error(msg)) + reject(new Error(message)) } image.src = url