mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
add test for outputs
This commit is contained in:
parent
59d4cef3d8
commit
d530e6ad59
3 changed files with 26 additions and 8 deletions
|
@ -1,8 +1,5 @@
|
|||
export function retry<T>(fn: () => Promise<T>, retries: number): Promise<T> {
|
||||
return fn().catch((err) => {
|
||||
console.log(`Remaining retries ${retries}`);
|
||||
console.log("Current error:");
|
||||
console.log(err);
|
||||
if (retries <= 0) {
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue