Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit e6a701c

Browse files
committed
Correct error message for PromiseRenderer (#18)
1 parent 38d64f9 commit e6a701c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/angular-datatables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
if (angular.isDefined(fnPromise)) {
336336
_reload(fnPromise);
337337
} else {
338-
throw new Error('You must provide a function that returns a promise!');
338+
throw new Error('You must provide a promise or a function that returns a promise!');
339339
}
340340
});
341341
$scope.$watch('dtOptions.reload', function (reload) {

dist/angular-datatables.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)