diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 8f79aed18..a63e2e6fd 100755 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -2166,21 +2166,21 @@ sub addnet while ($idx <= $#dhcpconf) { if ($dhcpconf[$idx] =~ /\} # $nic nic_end\n/) - { - last; - } - $idx++; + { + last; + } + $idx++; } unless ($dhcpconf[$idx] =~ /\} # $nic nic_end\n/) { - $callback->( - { - error => - ["Could not add the subnet $net/$mask for nic $nic into $dhcpconffile."], + $callback->( + { + error => + ["Could not add the subnet $net/$mask for nic $nic into $dhcpconffile.\nPlease verify the xCAT database matches networks defined on this system."], errorcode => [1] - } - ); - return 1; #TODO: this is an error condition + } + ); + return 1; } }