We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 847fc9d commit 2bc6612Copy full SHA for 2bc6612
packages/opencode/src/file/ripgrep.ts
@@ -145,7 +145,10 @@ export namespace Ripgrep {
145
const filename = `ripgrep-${version}-${config.platform}.${config.extension}`
146
const url = `https://github.com/BurntSushi/ripgrep/releases/download/${version}/${filename}`
147
148
- const response = await fetch(url)
+ const response = await fetch(url).catch((error:any) => {
149
+ log.error(`Failed to download ripgrep from URL:${url}, error:${error?.message ?? String(error)}`)
150
+ throw new DownloadFailedError({ url, status: -1 })
151
+ })
152
if (!response.ok) throw new DownloadFailedError({ url, status: response.status })
153
154
const arrayBuffer = await response.arrayBuffer()
0 commit comments