Skip to content

Commit bdd11df

Browse files
committed
Log VerifyCredentials error
Add log for error coming from `VerifyCredentials` as it's overwritten with `CHIP_ERROR_UNSUPPORTED_CERT_FORMAT` which hides root cause of the failure. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 714907e commit bdd11df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/credentials/FabricTable.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ CHIP_ERROR FabricTable::ValidateIncomingNOCChain(const ByteSpan & noc, const Byt
348348
outNocPubkey, &outRootPubkey);
349349
if (err != CHIP_NO_ERROR && err != CHIP_ERROR_WRONG_NODE_ID)
350350
{
351+
ChipLogError(FabricProvisioning, "VerifyCredentials failed: %" CHIP_ERROR_FORMAT, err.Format());
351352
err = CHIP_ERROR_UNSUPPORTED_CERT_FORMAT;
352353
}
353354
if (err != CHIP_NO_ERROR)

0 commit comments

Comments
 (0)