mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-09-07 11:35:59 -07:00
Retry HTTP(S) requests for non-429 status codes
This commit is contained in:
parent
94c628b822
commit
1687d30417
|
@ -93,7 +93,7 @@ export namespace EaglerSkins {
|
|||
res(await downloadSkin(skinUrl));
|
||||
} catch (err) {
|
||||
if (err.status == 429) throw new Error("Ratelimited!");
|
||||
else rej("Unexpected HTTP status code: " + err.status);
|
||||
else throw new Error("Unexpected HTTP status code: " + err.status);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user