From 117dcd9c58a0c9de6f63097d42b67f097cfc7dcf Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Tue, 1 Jan 2019 19:42:49 -0800 Subject: [PATCH] Fix error message in NativeViewHierarchy Summary: It was pointed out to me in https://github.com/facebook/react-native/pull/22508 by raphael-liu that the error message refers to the wrong tag. I didn't merge the PR because I don't have good insight into the effects it could cause, but we should at least fix the error message. Reviewed By: TheSavior Differential Revision: D13564266 fbshipit-source-id: fa76f0888364df329d052dbcc2050f906d39dcef --- .../facebook/react/uimanager/NativeViewHierarchyManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java index b9064170ac7..1277cae274d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -198,7 +198,7 @@ public class NativeViewHierarchyManager { parentViewGroupManager = (ViewGroupManager) parentViewManager; } else { throw new IllegalViewOperationException( - "Trying to use view with tag " + tag + + "Trying to use view with tag " + parentTag + " as a parent, but its Manager doesn't extends ViewGroupManager"); } if (parentViewGroupManager != null