File tree 1 file changed +2
-1
lines changed
src/darwin/Framework/CHIP
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -195,10 +195,11 @@ - (void)checkInteractionModelResponse:(MTRDiagnosticLogsClusterRetrieveLogsRespo
195
195
196
196
VerifyOrReturn (![status isEqual: @(MTRDiagnosticLogsStatusBusy)], [self failure: [MTRError errorForCHIPErrorCode: CHIP_ERROR_BUSY]]);
197
197
VerifyOrReturn (![status isEqual: @(MTRDiagnosticLogsStatusDenied)], [self failure: [MTRError errorForCHIPErrorCode: CHIP_ERROR_ACCESS_DENIED]]);
198
+ VerifyOrReturn (![status isEqual: @(MTRDiagnosticLogsStatusNoLogs)], [self failure: [MTRError errorForCHIPErrorCode: CHIP_ERROR_NOT_FOUND]]);
198
199
199
200
// If the whole log content fits into the response LogContent field or if there is no log, forward it to the caller
200
201
// and stop here.
201
- if ([status isEqual: @(MTRDiagnosticLogsStatusExhausted)] || [status isEqual: @(MTRDiagnosticLogsStatusNoLogs)] ) {
202
+ if ([status isEqual: @(MTRDiagnosticLogsStatusExhausted)]) {
202
203
NSError * writeError = nil ;
203
204
[self writeToFile: response.logContent error: &writeError];
204
205
VerifyOrReturn (nil == writeError, [self failure: writeError]);
You can’t perform that action at this time.
0 commit comments