From ba87eeecdae8fa91b8355a261b909aae63d36e5c Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 27 May 2020 15:42:34 -0700 Subject: [PATCH] fix logging variable, expose BAD_PATH --- js/modules/loki_rpc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/modules/loki_rpc.js b/js/modules/loki_rpc.js index dfbce16ae..794c26fd6 100644 --- a/js/modules/loki_rpc.js +++ b/js/modules/loki_rpc.js @@ -670,7 +670,7 @@ const lokiFetch = async (url, options = {}, targetNode = null) => { const result = await response.json(); log.warn( `lokirpc:::lokiFetch ${type} - wrong swarm, now looking at snodes`, - result.snode + result.snodes ); const newSwarm = result.snodes ? result.snodes : []; throw new textsecure.WrongSwarmError(newSwarm); @@ -859,5 +859,6 @@ const lokiRpc = ( module.exports = { lokiRpc, + BAD_PATH, sendOnionRequestLsrpcDest, };