Skip to content

Commit c1cb501

Browse files
Update packages/plugin-lightning/src/actions/payInvoice.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 30f772c commit c1cb501

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/plugin-lightning/src/actions/payInvoice.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ export const payInvoiceAction = {
102102
}
103103
return true;
104104
} catch (error) {
105-
const err = error?.[2]?.err;
106-
console.error("Error in payInvoice handler:", err.details);
105+
console.error("Error in payInvoice handler:", error);
107106
if (callback) {
108-
callback({ text: `Error: ${err.details}` });
107+
callback({ text: `Error: ${error.message || 'An error occurred'}` });
109108
}
110109
return false;
111110
}

0 commit comments

Comments
 (0)