Skip to content

Raise APIError from send_payment #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

yuntai
Copy link
Contributor

@yuntai yuntai commented Sep 12, 2018

instead of HandlError - add APIError::RouteError

(pushed untested pr before so reopening it)

add APIError::RouteError
Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Will take as #175 with the one whitespace nit fixed.

}
let our_node_id = self.get_our_node_id();
for (idx, hop) in route.hops.iter().enumerate() {
if idx != route.hops.len() - 1 && hop.pubkey == our_node_id {
return Err(HandleError{err: "Route went through us but wasn't a simple rebalance loop to us", action: None});
return Err(APIError::RouteError{err: "Route went through us but wasn't a simple rebalance loop to us"});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace err here.

@yuntai yuntai deleted the 201009-sendpayment-error branch September 13, 2018 15:26
TheBlueMatt added a commit that referenced this pull request Sep 13, 2018
raise APIError from send_payment (#173 without whitespace nit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants