Log more metadata when throwing error for non-existent viewState

Summary:
Collecting more telemetry to address or debug T112157805 further.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D36295635

fbshipit-source-id: 7896d641a0a745537c8dedf25f44913f47b83876
This commit is contained in:
Joshua Gross 2022-05-10 16:45:31 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 4e6c5992b7
Коммит 6915fce898
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1017,7 +1017,8 @@ public class SurfaceMountingManager {
private @NonNull ViewState getViewState(int tag) { private @NonNull ViewState getViewState(int tag) {
ViewState viewState = mTagToViewState.get(tag); ViewState viewState = mTagToViewState.get(tag);
if (viewState == null) { if (viewState == null) {
throw new RetryableMountingLayerException("Unable to find viewState for tag " + tag); throw new RetryableMountingLayerException(
"Unable to find viewState for tag " + tag + ". Surface stopped: " + isStopped());
} }
if (ReactFeatureFlags.enableDelayedViewStateDeletion) { if (ReactFeatureFlags.enableDelayedViewStateDeletion) {
mScheduledForDeletionViewStateTags.remove(tag); mScheduledForDeletionViewStateTags.remove(tag);