From 5940f5f3c084ec1348a2ec6acb1b2ba9288db33c Mon Sep 17 00:00:00 2001 From: "Justin (shocknet)" Date: Fri, 5 Jul 2024 23:06:14 -0400 Subject: [PATCH] deploy --- src/services/main/unlocker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/main/unlocker.ts b/src/services/main/unlocker.ts index f6a8bbf6..ecf8618c 100644 --- a/src/services/main/unlocker.ts +++ b/src/services/main/unlocker.ts @@ -93,8 +93,8 @@ export class Unlocker { await new Promise(res => setTimeout(res, 5000)); } - if (!info.ok) { - throw new Error("failed to init lnd wallet " + info.failure) + if (!info || !info.ok) { + throw new Error("failed to init lnd wallet " + (info ? info.failure : "unknown error")) } await this.storage.liquidityStorage.SaveNodeSeed(info.pub, JSON.stringify(encryptedData)) this.log("created wallet with pub:", info.pub)