Skip to content

InvalidNetworkError should not extend Error - #69

Merged
JakubKorytko merged 1 commit into
Expensify:mainfrom
MegaManSec:pr/jr-2-b7da262
Sep 30, 2026
Merged

JakubKorytko merged 1 commit into
Expensify:mainfrom
MegaManSec:pr/jr-2-b7da262

Conversation

@MegaManSec

Copy link
Copy Markdown
Contributor

No description provided.

(cherry picked from commit b7da262d6e21cef1ff295ff41ae558754e79e4f1)

@JakubKorytko JakubKorytko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Android emulator (release build, RN 0.81). With an unsupported network, main crashes on the old architecture (FATAL EXCEPTION: mqt_native_modules, InvalidNetworkError) and rejects with Exception in HostFunction: ... on the New Architecture. With this PR both reject cleanly with the error message. LGTM.

@JakubKorytko

Copy link
Copy Markdown
Member

closed for a moment to fix ci check, lgtm, thank you!

@JakubKorytko
JakubKorytko merged commit 7b74d8b into Expensify:main Sep 30, 2026
11 checks passed
@os-botify

os-botify Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 0.1.28 🎉

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