From 3034a7ae54db853824c0eb6e219ca689699b697a Mon Sep 17 00:00:00 2001 From: John Nilsson Date: Thu, 17 Mar 2016 23:28:13 +0100 Subject: [PATCH] Throw Error not string Got bitten by the silent treatment from html-loader (another fix for the same issue https://github.com/webpack/html-loader/pull/57 ) --- src/htmlparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmlparser.js b/src/htmlparser.js index 41a0caf..f2bbaa5 100644 --- a/src/htmlparser.js +++ b/src/htmlparser.js @@ -243,7 +243,7 @@ } if ( html === last ) { - throw 'Parse Error: ' + html; + throw new Error('Parse Error: ' + html); } } -- 2.34.1