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)
|
resolve(body)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.error('Error occurred while requesting:', requestOptions.url)
|
||||||
if (parseResponse) {
|
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 {
|
} else {
|
||||||
console.log('Error: ', `(status ${res.statusCode})`, err || res.body, requestOptions)
|
console.log('Error: ', `(status ${res.statusCode})`, err || res.body, requestOptions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue