Skip to content

Commit 19d1e83

Browse files
authored
Merge pull request #611 from AzureAD/oldalton/dont_log_enrollment_id_error
Don't log intune enrollment ID error
2 parents 42749fd + 4b05721 commit 19d1e83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IdentityCore/src/intune/MSIDIntuneEnrollmentIdsCache.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ - (BOOL)isValid:(NSDictionary *)json
208208
context:(id<MSIDRequestContext>)context
209209
error:(NSError **)error
210210
{
211-
NSString *errorDescription = @"Intune Enrollment ID JSON structure is incorrect.";
212-
__auto_type validationError = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorDescription, nil, nil, nil, context.correlationId, nil, YES);
213-
214211
if (!json) return YES;
215212

213+
NSString *errorDescription = @"Intune Enrollment ID JSON structure is incorrect.";
214+
__auto_type validationError = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, errorDescription, nil, nil, nil, context.correlationId, nil, NO);
215+
216216
if (![json isKindOfClass:NSDictionary.class])
217217
{
218218
if (error) *error = validationError;

0 commit comments

Comments
 (0)