Better handling exception in loadScript()
Differential Revision: D6856807 fbshipit-source-id: 36c527ee00eef56a5912ad6e4233d6cd61cb5170
This commit is contained in:
parent
e756251413
commit
3fbf7856d9
|
@ -57,7 +57,7 @@ public final class FallbackJSBundleLoader extends JSBundleLoader {
|
||||||
try {
|
try {
|
||||||
return getDelegateLoader().loadScript(instance);
|
return getDelegateLoader().loadScript(instance);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (!e.getMessage().startsWith(RECOVERABLE)) {
|
if (e.getMessage() == null || !e.getMessage().startsWith(RECOVERABLE)) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue