From: John Nilsson Date: Thu, 17 Mar 2016 22:28:13 +0000 (+0100) Subject: Throw Error not string X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3034a7ae54db853824c0eb6e219ca689699b697a;p=html-minifier.git 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 ) --- 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); } }