mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(sanitize): use minErr to throw exception
This commit is contained in:
parent
aad29cbbf0
commit
cd36cd86fc
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue