mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-03 17:15:37 +08:00
chore(sanitize): use minErr to throw exception
This commit is contained in:
committed by
Ken Sheedlo
parent
aad29cbbf0
commit
cd36cd86fc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user