aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-07-08 13:23:45 +0100
committerKen Sheedlo2013-07-18 14:02:36 -0700
commitcd36cd86fcbb8fec873a1fe3e513965d4dc0b557 (patch)
tree9be7b6b1c44c0cb77f91f0e4ffb08d101647bb86 /src
parentaad29cbbf0b101bc5e793a66df7e368c7968cad8 (diff)
downloadangular.js-cd36cd86fcbb8fec873a1fe3e513965d4dc0b557.tar.bz2
chore(sanitize): use minErr to throw exception
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;
}