aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ngSanitize/sanitize.js4
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;
}