Review comment plus added a todo

pull/255/head
Beaudan 7 years ago
parent 6656a89092
commit 0b6849c96a

@ -232,7 +232,9 @@ class LokiSnodeAPI {
result = await response.text(); result = await response.text();
} }
if (response.status !== 200 || !result.nodes || result.nodes === []) { // TODO: Handle wrong swarm error from snode
if (!response.ok || !result.nodes || result.nodes === []) {
throw new window.textsecure.EmptySwarmError( throw new window.textsecure.EmptySwarmError(
pubKey, pubKey,
'Could not retrieve swarm nodes' 'Could not retrieve swarm nodes'

Loading…
Cancel
Save