Skip to content

Commit

Permalink
Skip if add port failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur committed Sep 29, 2021
1 parent f7df9a1 commit 456079c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,9 @@ void PortsOrch::doPortTask(Consumer &consumer)
{
if (!addPort(it->first, get<1>(it->second), get<2>(it->second), get<3>(it->second)))
{
throw runtime_error("PortsOrch initialization failure.");
// Failure log has been recorded in the function addPort
it++;
continue;
}
}

Expand Down

0 comments on commit 456079c

Please sign in to comment.