Print body of http error as well

pull/324/head
Beaudan 6 years ago
parent fee25036be
commit f02e885662

@ -209,6 +209,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