Log clear error if we fail to retrieve debug log upload key
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user