Fix duplicate in error message
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / RestconfOperationsServiceImpl.java
index dfa708274b17faa6431ad0a6bb9c889fb49b6130..e418e7521d6c74ae1ad9a54d312cc8f561b74f15 100644 (file)
@@ -69,8 +69,7 @@ public class RestconfOperationsServiceImpl implements RestconfOperationsService
             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,