Log clear error if we fail to retrieve debug log upload key

This commit is contained in:
Scott Nonnenberg 2018-07-19 11:06:09 -07:00
parent 2ef2235317
commit cea38b7bc4

View file

@ -38,6 +38,9 @@ exports.upload = async content => {
'user-agent': USER_AGENT,
},
});
if (!signedForm.body) {
throw new Error('Failed to retrieve token');
}
const { fields, url } = signedForm.body;
const form = new FormData();