Commit 0e4b31cd authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[5122] Better error handling in unit-test

parent 22c37c19
......@@ -410,10 +410,10 @@ public:
Subnet6Ptr subnet = CfgMgr::instance().getStagingCfg()->getCfgSubnets6()->
selectSubnet(subnet_address, classify_);
if (!subnet) {
/// @todo replace toText() with the use of operator <<.
ADD_FAILURE() << "A subnet for the specified address "
<< subnet_address.toText()
<< subnet_address
<< " does not exist in Config Manager";
return (OptionDescriptor(false));
}
OptionContainerPtr options =
subnet->getCfgOption()->getAll(DHCP6_OPTION_SPACE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment