From ac2139d7f7f40bd40a2f53c481b4ec3e616161a4 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 13 Jun 2024 14:05:53 +0200 Subject: [PATCH] Add braces to if statement --- src/controller/CurrentFabricRemover.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/CurrentFabricRemover.cpp b/src/controller/CurrentFabricRemover.cpp index fa5585cbea1df6..899860a028221c 100644 --- a/src/controller/CurrentFabricRemover.cpp +++ b/src/controller/CurrentFabricRemover.cpp @@ -146,7 +146,9 @@ void CurrentFabricRemover::OnCommandFailure(void * context, CHIP_ERROR err) void CurrentFabricRemover::FinishRemoveCurrentFabric(void * context, CHIP_ERROR err) { if (err != CHIP_NO_ERROR) + { ChipLogError(Controller, "Remove Current Fabric Failed : %" CHIP_ERROR_FORMAT, err.Format()); + } auto * self = static_cast(context); self->mNextStep = Step::kAcceptRemoveFabricStart; if (self->mCurrentFabricRemoveCallback != nullptr)