We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda76e2 commit 355af0aCopy full SHA for 355af0a
1 file changed
Calendar/Check-SharingStatus.ps1
@@ -129,7 +129,13 @@ function ProcessCalendarSharingAcceptLogs {
129
Write-Host "Collecting AcceptCalendarSharingInvite logs for [$Identity] ..."
130
$logOutput = Export-MailboxDiagnosticLogs $Identity -ComponentName AcceptCalendarSharingInvite
131
} catch {
132
- Write-Warning "No AcceptCalendarSharingInvite logs found for [$Identity]."
+ $errorMessage = $_.Exception.Message
133
+ if ($errorMessage -match "(?i)not\s+found|no\s+logs") {
134
+ Write-Warning "No AcceptCalendarSharingInvite logs found for [$Identity]. Details: $errorMessage"
135
+ return
136
+ }
137
+
138
+ throw "Failed to collect AcceptCalendarSharingInvite logs for [$Identity]: $errorMessage"
139
}
140
141
# check if the output is empty
0 commit comments