Skip to content

Commit 9d915b9

Browse files
committed
Output more error info
1 parent 26c2041 commit 9d915b9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extensionstore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ async function request(
173173
body: data ? JSON.stringify(data) : undefined
174174
})
175175
if (!response.ok) {
176-
throw new Error(`HTTP Error: ${(response.status, response.statusText)}`)
176+
throw new Error(
177+
`HTTP Error: ${(response.status, response.statusText, response.body)}`
178+
)
177179
}
178180
return await response.json()
179181
}

0 commit comments

Comments
 (0)