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

fix: improve error output for failed shorebird preview on iOS #2634

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

bryanoltman
Copy link
Contributor

Description

We were previously only looking at "underlying failure reason" and not "description" or "localized description" when devicectl (which installs and launches the iOS app for shorebird preview) fails. This change introduces a fallback to localized description and then description if there is no underlying failure reason provided.

The implementations of toJson and toString in the NSError classes made debugging a lot easier and seem useful to keep around for the next time we need to touch this.

Fixes #2633

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Tests

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@bryanoltman bryanoltman merged commit bb1807c into main Nov 20, 2024
11 checks passed
@bryanoltman bryanoltman deleted the bo/ios-preview-failure-message branch November 20, 2024 17:58
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.

fix: show underlying error when shorebird preview fails on iOS
2 participants