Skip to content

Commit 038fde2

Browse files
committed
Make an error message more descriptive
1 parent e08eded commit 038fde2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/Ssurgeon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public static SsurgeonEdit parseEditLine(String editLine, Map<String, String> at
555555
return new DeleteLeaf(argsBox.nodes.get(0));
556556
} else if (command.equalsIgnoreCase(EditNode.LABEL)) {
557557
if (argsBox.nodes.size() != 1) {
558-
throw new SsurgeonParseException("Cannot make an EditNode out of " + argsBox.nodes.size() + " nodes");
558+
throw new SsurgeonParseException("Cannot make an EditNode out of " + argsBox.nodes.size() + " nodes. Please use exactly one -node");
559559
}
560560
return new EditNode(argsBox.nodes.get(0), argsBox.annotations);
561561
} else if (command.equalsIgnoreCase(MergeNodes.LABEL)) {

0 commit comments

Comments
 (0)