diff options
| -rw-r--r-- | src/ngSanitize/sanitize.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ngSanitize/sanitize.js b/src/ngSanitize/sanitize.js index a12797d2..616b5a80 100644 --- a/src/ngSanitize/sanitize.js +++ b/src/ngSanitize/sanitize.js @@ -1,5 +1,7 @@ 'use strict'; +var ngSanitizeMinErr = minErr('ngSanitize'); + /** * @ngdoc overview * @name ngSanitize @@ -269,7 +271,7 @@ function htmlParser( html, handler ) { } if ( html == last ) { - throw "Parse Error: " + html; + throw ngSanitizeMinErr('badparse', "The sanitizer was unable to parse the following block of html: {0}", html); } last = html; } |
