Throw Error not string
authorJohn Nilsson <john@milsson.nu>
Thu, 17 Mar 2016 22:28:13 +0000 (23:28 +0100)
committerJohn Nilsson <john@milsson.nu>
Thu, 17 Mar 2016 22:28:13 +0000 (23:28 +0100)
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

index 41a0caf..f2bbaa5 100644 (file)
       }
 
       if ( html === last ) {
-        throw 'Parse Error: ' + html;
+        throw new Error('Parse Error: ' + html);
       }
     }