Skip to content

Commit

Permalink
Log clear error if we fail to retrieve debug log upload key
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Jul 19, 2018
1 parent 2ef2235 commit cea38b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/modules/debuglogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cea38b7

Please sign in to comment.