Skip to content

Commit

Permalink
fix error arguments (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznovac authored Jul 27, 2021
1 parent b772eca commit 1e3ce8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function makeAutoPagingEach(asyncIteratorNext) {
const onItem = getItemCallback(args);
const onDone = getDoneCallback(args);
if (args.length > 2) {
throw Error('autoPagingEach takes up to two arguments; received:', args);
throw Error(`autoPagingEach takes up to two arguments; received ${args}`);
}

const autoPagePromise = wrapAsyncIteratorWithCallback(
Expand Down

0 comments on commit 1e3ce8f

Please sign in to comment.