Skip to content

Commit 0d08185

Browse files
fix: improve error handling for missing JavaScript bundle URL
1 parent aa7c075 commit 0d08185

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/ios/MendixNativeExample/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class AppDelegate: RCTAppDelegate {
1818
SessionCookieStore.restore()
1919

2020
guard let bundleUrl = bundleURL() else {
21-
fatalError("Unable to load JavaScript bundle.")
21+
let message = "No script URL provided. Make sure the metro packager is running or you have embedded a JS bundle in your application bundle."
22+
NativeErrorHandler().handle(message: message, stackTrace: [])
23+
return false
2224
}
2325

2426
MxConfiguration.update(from:

0 commit comments

Comments
 (0)