Skip to content

Commit 3d35007

Browse files
foolipgr2m
authored andcommitted
fix: misnamed arguments in error message (#121)
1 parent e015348 commit 3d35007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function throttlingPlugin (octokit, octokitOptions = {}) {
7171
7272
const octokit = new Octokit({
7373
throttle: {
74-
onAbuseLimit: (error, options) => {/* ... */},
75-
onRateLimit: (error, options) => {/* ... */}
74+
onAbuseLimit: (retryAfter, options) => {/* ... */},
75+
onRateLimit: (retryAfter, options) => {/* ... */}
7676
}
7777
})
7878
`)

0 commit comments

Comments
 (0)