Merge "Bug-6346: Allow over-ride of non-module capabilities"
authorJakub Morvay <jmorvay@cisco.com>
Fri, 3 Mar 2017 19:13:46 +0000 (19:13 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 3 Mar 2017 19:13:46 +0000 (19:13 +0000)
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/ControllerContext.java

index eb4beb60af9bd25d711f1766613a3cc06b3cdb34..3e3b924cab98cfbb2aea99f3ef88fafe122982e5 100644 (file)
@@ -554,7 +554,7 @@ public class ControllerContext implements SchemaContextListener {
 
                 final Module moduleBehindMountPoint = mountPointSchema.findModuleByName(moduleNameBehindMountPoint, null);
                 if (moduleBehindMountPoint == null) {
-                    throw new RestconfDocumentedException("\"" + moduleName
+                    throw new RestconfDocumentedException("\"" + moduleNameBehindMountPoint
                             + "\" module does not exist in mount point.", ErrorType.PROTOCOL, ErrorTag.UNKNOWN_ELEMENT);
                 }