diff --git a/js/modules/debuglogs.js b/js/modules/debuglogs.js index 156f3bfa0da..b39119e739f 100644 --- a/js/modules/debuglogs.js +++ b/js/modules/debuglogs.js @@ -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();