Fix duplicate occurrence of yang-ext:mount in error message
when operation is not found.
JIRA: NETCONF-926
Change-Id: I2d8f9f1e2f1c4257e3802f7e2df983597f34c6c4
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
8de9afa5d61cc863e216a98d39a950bb300514d0)
final String errMsg = "URI has bad format. If operations behind mount point should be showed, URI has to "
+ " end with " + RestconfConstants.MOUNT;
LOG.debug("{} for {}", errMsg, identifier);
- throw new RestconfDocumentedException(errMsg + RestconfConstants.MOUNT, ErrorType.PROTOCOL,
- ErrorTag.INVALID_VALUE);
+ throw new RestconfDocumentedException(errMsg, ErrorType.PROTOCOL, ErrorTag.INVALID_VALUE);
}
final InstanceIdentifierContext mountPointIdentifier = ParserIdentifier.toInstanceIdentifier(identifier,