Skip to content

Commit a7f144f

Browse files
committed
AI comment suggestions
1 parent 66cc865 commit a7f144f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

MSAL/src/configuration/MSALLoggerConfig.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ - (void)setLogCallback:(MSALLogCallback)callback
5555
if (self.callback != nil)
5656
{
5757
#if DEBUG
58-
@throw @"MSAL logging callback can only be set once per process and should never changed once set.";
58+
@throw [NSException
59+
exceptionWithName:NSInternalInconsistencyException
60+
reason:@"MSAL logging callback can only be set once per process and should never changed be once set."
61+
userInfo:nil];
5962
#endif
60-
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"MSAL logging callback can only be set once per process and should never changed once set.");
63+
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"MSAL logging callback can only be set once per process and should never be changed once set.");
6164
return;
6265
}
6366

0 commit comments

Comments
 (0)