diff options
| author | Pete Bacon Darwin | 2013-07-08 13:23:45 +0100 |
|---|---|---|
| committer | Ken Sheedlo | 2013-07-18 14:02:36 -0700 |
| commit | cd36cd86fcbb8fec873a1fe3e513965d4dc0b557 (patch) | |
| tree | 9be7b6b1c44c0cb77f91f0e4ffb08d101647bb86 /src/ngSanitize/sanitize.js | |
| parent | aad29cbbf0b101bc5e793a66df7e368c7968cad8 (diff) | |
| download | angular.js-cd36cd86fcbb8fec873a1fe3e513965d4dc0b557.tar.bz2 | |
chore(sanitize): use minErr to throw exception
Diffstat (limited to 'src/ngSanitize/sanitize.js')
| -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; } |
