Skip to content

Commit

Permalink
Add success message on removing current fabric (#33914)
Browse files Browse the repository at this point in the history
Readd a message with progress-level when removing the current fabric
succeeded.
  • Loading branch information
agners authored Jun 13, 2024
1 parent a3bb9c3 commit 60ae46d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controller/CurrentFabricRemover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ void CurrentFabricRemover::OnCommandFailure(void * context, CHIP_ERROR err)

void CurrentFabricRemover::FinishRemoveCurrentFabric(void * context, CHIP_ERROR err)
{
if (err != CHIP_NO_ERROR)
if (err == CHIP_NO_ERROR)
{
ChipLogProgress(Controller, "Remove Current Fabric succeeded.");
}
else
{
ChipLogError(Controller, "Remove Current Fabric Failed : %" CHIP_ERROR_FORMAT, err.Format());
}
Expand Down

0 comments on commit 60ae46d

Please sign in to comment.