Skip to content

Commit 5d352a5

Browse files
author
Andrey Kostyuchenko
committed
PDKIO-1761: throw not 429 error
1 parent cf205e5 commit 5d352a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/authenticators/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ async () => {
5959
} catch(err) {
6060
if (err && err.statusCode === 429) {
6161
await _sleep(1000);
62-
return grantWrapFunc
62+
return await grantWrapFunc();
6363
}
64+
throw err;
6465
}
6566
}
6667
outstanding = grantWrapFunc();

0 commit comments

Comments
 (0)