Skip to content

Commit cd36cd8

Browse files
petebacondarwinksheedlo
authored andcommitted
chore(sanitize): use minErr to throw exception
1 parent aad29cb commit cd36cd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ngSanitize/sanitize.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
var ngSanitizeMinErr = minErr('ngSanitize');
4+
35
/**
46
* @ngdoc overview
57
* @name ngSanitize
@@ -269,7 +271,7 @@ function htmlParser( html, handler ) {
269271
}
270272

271273
if ( html == last ) {
272-
throw "Parse Error: " + html;
274+
throw ngSanitizeMinErr('badparse', "The sanitizer was unable to parse the following block of html: {0}", html);
273275
}
274276
last = html;
275277
}

0 commit comments

Comments
 (0)