Skip to content

Commit

Permalink
show request that lead to error in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ge-ku committed May 31, 2018
1 parent a884644 commit b4eb6b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcpd730.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ const fetchMatchHistoryPage = (recursively, page, retryCount) => {
})
.then(json => {
if (!json.success) {
throw Error(`error parsing JSON:\n${JSON.stringify(json)}`);
throw Error('error getting valid JSON in response to\n' +
`${profileURI}gcpd/730?ajax=1&tab=${tabURIparam}&continue_token=${continue_token}&sessionid=${sessionid}`);
}
if (json.continue_token) {
continue_token = json.continue_token;
Expand Down

0 comments on commit b4eb6b7

Please sign in to comment.