Skip to content

fix(phone_contact): replace RuntimeError with debugPrint for missing contact photo#2180

Merged
usmandevx merged 1 commit intomainfrom
fix/issue-2168-contact-image-error
Mar 26, 2026
Merged

fix(phone_contact): replace RuntimeError with debugPrint for missing contact photo#2180
usmandevx merged 1 commit intomainfrom
fix/issue-2168-contact-image-error

Conversation

@usmandevx
Copy link
Copy Markdown
Contributor

@usmandevx usmandevx commented Mar 26, 2026

Summary

  • Replace thrown RuntimeError with debugPrint when contact photo is missing
  • Treat missing contact images as a normal, non-fatal scenario

Key Changes

Error Handling

  • Replace:

    • throw RuntimeError('Contact Photo Error: $error');
  • With:

    • debugPrint('Contact photo missing $error');
  • Ensure the app logs the issue in debug mode instead of interrupting execution

Expected Behavior

  • Missing contact photos no longer cause runtime failures
  • Application continues to function normally
  • Developers retain visibility via debug logs during development

@usmandevx usmandevx requested a review from sharjeelyunus March 26, 2026 19:19
@usmandevx usmandevx self-assigned this Mar 26, 2026
@usmandevx usmandevx added the enhancement New feature or request label Mar 26, 2026
@usmandevx usmandevx force-pushed the fix/issue-2168-contact-image-error branch from 3b73913 to b36b399 Compare March 26, 2026 19:24
@usmandevx usmandevx merged commit 8304d03 into main Mar 26, 2026
5 checks passed
@TheNoumanDev TheNoumanDev linked an issue Mar 26, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async Error: Runtime Error: Contact Photo Error

2 participants