Skip to content

Android: preserve JSONException cause in setJSONValueForKey - #34

Merged
ofalvai merged 1 commit into
masterfrom
push-owzmoqnuuyvw
Aug 17, 2026
Merged

Android: preserve JSONException cause in setJSONValueForKey#34
ofalvai merged 1 commit into
masterfrom
push-owzmoqnuuyvw

Conversation

@ofalvai

@ofalvai ofalvai commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Part of a list of quick tactical logging fixes.

The catch block had the original JSONException in hand but built the CodePushUnknownException without it, discarding the cause and its stack trace entirely.

The catch block had the original JSONException in hand but built the
CodePushUnknownException without it, discarding the cause and its
stack trace entirely. Pass it through so CodePushUtils.log(Throwable)
callers downstream actually see why the JSON write failed.
@ofalvai
ofalvai merged commit edd2d36 into master Aug 17, 2026
5 checks passed
@ofalvai
ofalvai deleted the push-owzmoqnuuyvw branch August 17, 2026 09:49
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