Skip to content

Commit cda76e2

Browse files
ShanefeCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 37f5bec commit cda76e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Calendar/Check-SharingStatus.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function ProcessCalendarSharingInviteLogs {
6161

6262
$logOutput = Export-MailboxDiagnosticLogs $Identity -ComponentName CalendarSharingInvite
6363
} catch {
64-
Write-Warning "No CalendarSharingInvite logs found for [$Identity]."
64+
Write-Warning "Failed to retrieve CalendarSharingInvite logs for [$Identity]: $($_.Exception.Message)"
65+
return
6566
}
6667

6768
# check if the output is empty

0 commit comments

Comments
 (0)