From cd36cd86fcbb8fec873a1fe3e513965d4dc0b557 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 8 Jul 2013 13:23:45 +0100 Subject: chore(sanitize): use minErr to throw exception --- src/ngSanitize/sanitize.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3