fix logging variable, expose BAD_PATH

pull/1143/head
Ryan Tharp 5 years ago
parent 9ecdcbf581
commit ba87eeecda

@ -670,7 +670,7 @@ const lokiFetch = async (url, options = {}, targetNode = null) => {
const result = await response.json(); const result = await response.json();
log.warn( log.warn(
`lokirpc:::lokiFetch ${type} - wrong swarm, now looking at snodes`, `lokirpc:::lokiFetch ${type} - wrong swarm, now looking at snodes`,
result.snode result.snodes
); );
const newSwarm = result.snodes ? result.snodes : []; const newSwarm = result.snodes ? result.snodes : [];
throw new textsecure.WrongSwarmError(newSwarm); throw new textsecure.WrongSwarmError(newSwarm);
@ -859,5 +859,6 @@ const lokiRpc = (
module.exports = { module.exports = {
lokiRpc, lokiRpc,
BAD_PATH,
sendOnionRequestLsrpcDest, sendOnionRequestLsrpcDest,
}; };

Loading…
Cancel
Save