Log clear error if we fail to retrieve debug log upload key
This commit is contained in:
parent
2ef2235317
commit
cea38b7bc4
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ exports.upload = async content => {
|
||||||
'user-agent': USER_AGENT,
|
'user-agent': USER_AGENT,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
if (!signedForm.body) {
|
||||||
|
throw new Error('Failed to retrieve token');
|
||||||
|
}
|
||||||
const { fields, url } = signedForm.body;
|
const { fields, url } = signedForm.body;
|
||||||
|
|
||||||
const form = new FormData();
|
const form = new FormData();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue