public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e1e87
)
Throw Error not string
author
John Nilsson
<john@milsson.nu>
Thu, 17 Mar 2016 22:28:13 +0000
(23:28 +0100)
committer
John 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
patch
|
blob
|
history
diff --git
a/src/htmlparser.js
b/src/htmlparser.js
index
41a0caf
..
f2bbaa5
100644
(file)
--- 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)
;
}
}