Do not use SchemaNode.getPath() in assertions
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / SchemaAwareApplyOperation.java
index 56fea60bc096572b855619ad3bc2cd14d600b117..920cd2f71f55ec8e1b7223b7b1e58bca22c278cf 100644 (file)
@@ -45,7 +45,7 @@ abstract class SchemaAwareApplyOperation<T extends WithStatus> extends Modificat
             final DataTreeConfiguration treeConfig) {
         if (treeConfig.getTreeType() == TreeType.CONFIGURATION) {
             checkArgument(schemaNode.isConfiguration(), "Supplied %s does not belongs to configuration tree.",
-                schemaNode.getPath());
+                schemaNode);
         }
         if (schemaNode instanceof ContainerSchemaNode) {
             return ContainerModificationStrategy.of((ContainerSchemaNode) schemaNode, treeConfig);