chore(sanitize): use minErr to throw exception

This commit is contained in:
Pete Bacon Darwin 2013-07-08 13:23:45 +01:00 committed by Ken Sheedlo
parent aad29cbbf0
commit cd36cd86fc

View file

@ -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;
}