Skip to content

Fix: add logging to empty catch blocks in ReportContext#138

Open
Xenon010101 wants to merge 1 commit into
madanrajsagar:mainfrom
Xenon010101:fix/bug-77-empty-catch
Open

Fix: add logging to empty catch blocks in ReportContext#138
Xenon010101 wants to merge 1 commit into
madanrajsagar:mainfrom
Xenon010101:fix/bug-77-empty-catch

Conversation

@Xenon010101

Copy link
Copy Markdown

Closes #77

Root cause: Two empty catch blocks in ReportContext (lines 19 and 37) silently swallowed errors during AsyncStorage hydration and persistence, making it impossible to debug storage failures.

Fix: Added console.warn logging with the error object to both catch blocks so that storage failures are observable during development and debugging.

Closes madanrajsagar#77

Added console.warn logging to two empty catch blocks in
ReportContext (hydration from storage and persistence to
storage) so that silent failures are observable during
development and debugging.

Signed-off-by: Xenon010101 <xenon010101@users.noreply.github.com>
@Xenon010101

Copy link
Copy Markdown
Author

Hi @madanrajsagar, just checking if there's anything blocking this from merging. Happy to make changes if needed.

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