Skip to content

Commit 80d269f

Browse files
brad4dcopybara-github
authored andcommitted
Improve a CodeGenerator error message.
PiperOrigin-RevId: 321213375
1 parent 7507d26 commit 80d269f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/google/javascript/jscomp/CodeGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ protected void add(Node node, Context context) {
389389

390390
case HOOK:
391391
{
392-
checkState(childCount == 3, node);
392+
checkState(childCount == 3, "%s wrong number of children: %s", node, childCount);
393393
int p = NodeUtil.precedence(type);
394394
Context rhsContext = getContextForNoInOperator(context);
395395
addExpr(first, p + 1, context);

0 commit comments

Comments
 (0)