[java-psi] checkPersistentElementRemoval: use logger instead of exception (IJ-CR-7608)

GitOrigin-RevId: 3eb5b6f71c7286ab1c8f7f85fbd308bc5bfe2187
This commit is contained in:
Tagir Valeev
2021-03-26 09:53:45 +07:00
committed by intellij-monorepo-bot
parent 67e7993386
commit b566b6e97d

View File

@@ -172,7 +172,7 @@ public class PsiBinaryExpressionImpl extends ExpressionPsiElement implements Psi
if (inside) {
int role = getChildRole(node);
if (role == ChildRole.OPERATION_SIGN || role == ChildRole.LOPERAND) {
throw new IncorrectOperationException("Unable to remove child with role " + role + "(" + node.getElementType() + ")");
LOG.error("Unable to remove child with role " + role + "(" + node.getElementType() + ")");
}
}
if (node.getPsi() == last) {