Downgrade TurboModule crash to warning

Summary:
This is to address a UBN blocking FBiOSv300 rollout. A TM is attempting to invoke a promise more than once and crashing. We can't find the TM, so downgrading this to a warning to unblock the release.

Plan going forward:
- Replace this with some better logging to try and identify the culprit module.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D25539676

fbshipit-source-id: 5b75b71110eaa393378049de6e0d9a77e6328831
This commit is contained in:
Peter Argany 2020-12-14 12:56:19 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 18149e4fa8
Коммит 687ddf0f32
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -244,7 +244,8 @@ jsi::Value ObjCTurboModule::createPromise(
}
if (resolveWasCalled) {
throw std::runtime_error("Tried to resolve a promise more than once.");
RCTLogWarn(@"Tried to resolve a promise more than once.");
return;
}
auto strongResolveWrapper = weakResolveWrapper.lock();