diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index b271b7f19..e642a134b 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -239,6 +239,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ { jaddstr(retjson,"error","IPC endpoint already exists"); jaddstr(retjson,"endpoint","ws://127.0.0.1:5555"); + jaddnum(retjson,"socket",IPC_ENDPOINT); } else { @@ -248,13 +249,15 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ { jaddstr(retjson,"result","success"); jaddstr(retjson,"endpoint","ws://127.0.0.1:5555"); + jaddnum(retjson,"socket",IPC_ENDPOINT); } else { jaddstr(retjson,"error",(char *)nn_strerror(nn_errno())); jaddnum(retjson,"err",err); + jaddnum(retjson,"socket",IPC_ENDPOINT); } - } else jaddstr(retjson,"error","couldnt get NN_PUB socket"); + } else jaddstr(retjson,"error","couldnt get NN_PAIR socket"); } return(jprint(retjson,1)); }