From 2e39999e61d138debfbb56508bfcc2145a2ba216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quique=20Borred=C3=A1?= Date: Fri, 16 Oct 2015 10:42:55 +0200 Subject: [PATCH] Fix for the variable name on new Error the new Error should be passed the correct variable 'message' not 'msg' .. --- 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