Skip to content
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

Add find_device function #56

Merged
merged 5 commits into from
Nov 16, 2022
Merged

Conversation

yukibtc
Copy link
Contributor

@yukibtc yukibtc commented Nov 15, 2022

No description provided.

src/interface.rs Outdated
@@ -170,6 +170,11 @@ impl HWIClient {
.commands
.getattr(py, "find_device")?
.call1(py, client_args)?;

if client.is_none(py) {
return Err(Error::Utf8("Device not found".to_string()));
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think this should be a Error::HWIError

Copy link
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

ACK 4165003

@danielabrozzoni danielabrozzoni merged commit 09c73c9 into bitcoindevkit:master Nov 16, 2022
@yukibtc yukibtc deleted the finddevice branch November 16, 2022 10:34
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