Skip to content

Commit b1c51f8

Browse files
committed
use status text
1 parent d4bbb46 commit b1c51f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/sources/gitHubSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async function fetchBranchesList(
273273
}
274274
const response = await fetch(`https://api.github.com/repos/${url.repo}/branches`, { ...options?.requestInit, headers })
275275
if (!response.ok) {
276-
throw new Error(`HTTP error ${response.status.toString()}`)
276+
throw new Error(`HTTP error ${response.statusText} (${response.status})`)
277277
}
278278
const branches = await response.json() as {name: string}[]
279279
return branches.map(({ name }) => name)

0 commit comments

Comments
 (0)