lightninglabs / lightning-dev-site

Lightning Network Daemon Developer Site
25 stars 40 forks source link

Adding on 'error' example for subscribeInvoices #23

Closed sangaman closed 6 years ago

sangaman commented 6 years ago

After using the examples in this guide, I realized that when LND terminated unexpectedly it resulted in an unhandled error that killed my application. I think adding this example of handling the error event from subscribeInvoices would be helpful and make this guide more complete.

MaxFangX commented 6 years ago

Thank you for the addition!