Skip to content

Need example with proper error handling #14

@laanwj

Description

@laanwj

The current examples simply unwrap everything, causing them to panic on the slightest error.

Would be nice to have an example to show how error handling should be done (say, doing an invoice on one node and paying it from another?), matching expected errors against the error::RpcErrorCode enum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions