Skip to content

Commit a260e54

Browse files
fix(chapter-9): do not mention ui-date-format in error message
1 parent 87bc3d1 commit a260e54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

1820EN_09_Code/06_jQuery_datepicker_directive/directive.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ angular.module('date-picker-directive', [])
4242

4343
ngModelCtrl.$formatters.push(function(date) {
4444
if ( angular.isDefined(date) && date !== null && !angular.isDate(date) ) {
45-
throw new Error(
46-
'ng-Model value must be a Date object - currently it is a ' + typeof date +
47-
' - use ui-date-format to convert it from a string');
45+
throw new Error('ng-Model value must be a Date object - currently it is a ' + typeof date);
4846
}
4947
return date;
5048
});

0 commit comments

Comments
 (0)