Skip to content

Commit

Permalink
PDKIO-1761: throw not 429 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kostyuchenko committed Jan 25, 2021
1 parent cf205e5 commit 5d352a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/authenticators/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ async () => {
} catch(err) {
if (err && err.statusCode === 429) {
await _sleep(1000);
return grantWrapFunc
return await grantWrapFunc();
}
throw err;
}
}
outstanding = grantWrapFunc();
Expand Down

0 comments on commit 5d352a5

Please sign in to comment.