ci: add better logging around request failures for releasing (#14239)
This commit is contained in:
parent
d2cd641381
commit
776943218a
1 changed files with 6 additions and 1 deletions
|
@ -34,8 +34,13 @@ async function makeRequest (requestOptions, parseResponse) {
|
|||
resolve(body)
|
||||
}
|
||||
} else {
|
||||
console.error('Error occurred while requesting:', requestOptions.url)
|
||||
if (parseResponse) {
|
||||
console.log('Error: ', `(status ${res.statusCode})`, err || JSON.parse(res.body), requestOptions)
|
||||
try {
|
||||
console.log('Error: ', `(status ${res.statusCode})`, err || JSON.parse(res.body), requestOptions)
|
||||
} catch (err) {
|
||||
console.log('Error: ', `(status ${res.statusCode})`, err || res.body, requestOptions)
|
||||
}
|
||||
} else {
|
||||
console.log('Error: ', `(status ${res.statusCode})`, err || res.body, requestOptions)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue