Skip to content

Commit

Permalink
fix: Add URL to the failed request error message
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Oct 27, 2023
1 parent 4aa7215 commit 6c9d0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function request(token, repo, path) {
'X-GitHub-Api-Version': '2022-11-28'
})
if (res.message.statusCode !== 200) {
const err = new Error(`${res.message.statusCode} ${res.message.statusMessage}`)
const err = new Error(`GET ${url} failed: ${res.message.statusCode} ${res.message.statusMessage}`)
err.response = res
throw err
}
Expand Down

0 comments on commit 6c9d0fe

Please sign in to comment.