Merge pull request #324 from BeaudanBrown/improve-http-error

Also put the body in httperror
pull/326/head
Beaudan Campbell-Brown 6 years ago committed by GitHub
commit 5aedd618c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -215,6 +215,8 @@ class LokiMessageAPI {
successiveFailures += 1;
} else if (e instanceof textsecure.HTTPError) {
// TODO: Handle working connection but error response
const body = await e.response.text();
log.warn('HTTPError body:', body);
successiveFailures += 1;
} else {
successiveFailures += 1;

Loading…
Cancel
Save