We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aad29cb commit cd36cd8Copy full SHA for cd36cd8
src/ngSanitize/sanitize.js
@@ -1,5 +1,7 @@
1
'use strict';
2
3
+var ngSanitizeMinErr = minErr('ngSanitize');
4
+
5
/**
6
* @ngdoc overview
7
* @name ngSanitize
@@ -269,7 +271,7 @@ function htmlParser( html, handler ) {
269
271
}
270
272
273
if ( html == last ) {
- throw "Parse Error: " + html;
274
+ throw ngSanitizeMinErr('badparse', "The sanitizer was unable to parse the following block of html: {0}", html);
275
276
last = html;
277
0 commit comments