From c681a62566b6a348271a84f42e410301beaf70de Mon Sep 17 00:00:00 2001 From: calebboyd Date: Wed, 24 Oct 2018 14:28:34 -0500 Subject: [PATCH] chore: log json error response --- tasks/asset-compile.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/asset-compile.ts b/tasks/asset-compile.ts index b28a28a..15b2ea9 100644 --- a/tasks/asset-compile.ts +++ b/tasks/asset-compile.ts @@ -78,8 +78,7 @@ async function build() { 'Content-Type': 'application/octet-stream' } }).catch(reason => { - console.log(reason) - console.log(reason && reason.body) + console.log(reason && reason.response && reason.response.body) throw reason }) console.log(target + ' uploaded.')