Skip to content

Commit

Permalink
Add success message on removing current fabric
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 committed Jun 13, 2024
1 parent cc66da8 commit 7d07153
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 7d07153

Please sign in to comment.