print as json
This commit is contained in:
parent
84e81aace3
commit
8324eb9985
@ -46,7 +46,7 @@ function verifyResponse2(res, errorMessage) {
|
||||
|
||||
function verifyResponse(res, errorMessage) {
|
||||
if (res.statusCode < 200 || res.statusCode > 299) {
|
||||
console.log('Response error statusCode:%s error:%s body:%s', res.statusCode, res.error, res.body);
|
||||
console.log('Response error statusCode:%s error:%s body:%j', res.statusCode, res.error, res.body);
|
||||
console.log(errorMessage.red);
|
||||
process.exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user