Skip to content

Commit f47f13f

Browse files
committed
fix: throw error if last try
1 parent a0e9c51 commit f47f13f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ async function main() {
135135
console.error(`Failed to process image for token ${token.symbol}:`, err)
136136
console.error(`Token details:`, token)
137137
console.warn(` Retrying ${attempt + 1} of ${10}`)
138+
if (attempt == 10) {
139+
throw (err)
140+
}
138141
}
139142
}
140143

0 commit comments

Comments
 (0)