File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 160
160
* @def ReturnErrorVariantOnFailure(expr)
161
161
*
162
162
* @brief
163
- * This is for use when the caller function returns a Variant type. It returns a CHIP_ERROR variant with the corresponding error
163
+ * This is for use when the calling function returns a Variant type. It returns a CHIP_ERROR variant with the corresponding error
164
164
* code if the expression returns an error. For a CHIP_ERROR expression, this means any value other
165
165
* than CHIP_NO_ERROR. For an integer expression, this means non-zero.
166
166
*
Original file line number Diff line number Diff line change @@ -1138,19 +1138,15 @@ CASESession::NextStep CASESession::HandleSigma1(System::PacketBufferHandle && ms
1138
1138
1139
1139
return NextStep::Create<Step>(Step::kSendSigma2 );
1140
1140
}
1141
- else
1142
- {
1143
- ChipLogError (SecureChannel, " CASE failed to match destination ID with local fabrics" );
1144
- ChipLogByteSpan (SecureChannel, parsedSigma1.destinationId );
1145
1141
1146
- // FindLocalNodeFromDestinationId returns CHIP_ERROR_KEY_NOT_FOUND if Sigma1's DestinationId does not match any
1147
- // candidateDestinationId, this will trigger a status Report with ProtocolCode = NoSharedTrustRoots.
1142
+ ChipLogError (SecureChannel, " CASE failed to match destination ID with local fabrics " );
1143
+ ChipLogByteSpan (SecureChannel, parsedSigma1. destinationId );
1148
1144
1149
- // Returning a CHIP_ERROR variant that will trigger a corresponding Status Report.
1150
- return NextStep::Create<CHIP_ERROR>(err);
1151
- }
1145
+ // FindLocalNodeFromDestinationId returns CHIP_ERROR_KEY_NOT_FOUND if Sigma1's DestinationId does not match any
1146
+ // candidateDestinationId, this will trigger a status Report with ProtocolCode = NoSharedTrustRoots.
1152
1147
1153
- return NextStep::Create<CHIP_ERROR>(CHIP_NO_ERROR);
1148
+ // Returning a CHIP_ERROR variant that will trigger a corresponding Status Report.
1149
+ return NextStep::Create<CHIP_ERROR>(err);
1154
1150
}
1155
1151
1156
1152
CHIP_ERROR CASESession::PrepareSigma2Resume (EncodeSigma2ResumeInputs & outSigma2ResData)
You can’t perform that action at this time.
0 commit comments