Skip to content

Include detail message in IdeviceError::InternalError Display - #4

Merged
Derrors merged 1 commit into
masterfrom
fix/internal-error-display
Dec 5, 2026
Merged

Derrors merged 1 commit into
masterfrom
fix/internal-error-display

Conversation

@Derrors

@Derrors Derrors commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix IdeviceError::InternalError(String) Display format from "internal error" to "internal error: {0}" so decoded NSError messages from dvt::process_control (and lockdown/mobilebackup2/remote_pairing internal error details) are not silently dropped by .to_string().
  • Add unit test internal_error_display_includes_detail_message.

Test plan

  • cargo fmt -p idevice -- --check
  • cargo clippy -p idevice --features full --lib --tests -- -D warnings
  • cargo test -p idevice --features full --lib (97/97)

🤖 Generated with Claude Code

IdeviceError::InternalError(String) previously used #[error("internal error")],
discarding its payload when formatted via Display (including decoded NSError
messages returned from dvt::process_control::launch_app / launch_with_options).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Derrors
Derrors merged commit fea2b55 into master Dec 5, 2026
2 checks passed
@Derrors
Derrors deleted the fix/internal-error-display branch December 5, 2026 09:13
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.

1 participant