From fbf4ea44de10b62d9d7290dee54c1668a23e786d Mon Sep 17 00:00:00 2001 From: Troy Harshberger Date: Wed, 4 Dec 2024 12:08:02 -0700 Subject: [PATCH] Update error message --- Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 b/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 index 98cc27ad5db2..41d6ccbd116e 100644 --- a/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 +++ b/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 @@ -98,7 +98,7 @@ function Set-PSAAssetDetail { return "Updated $($ATDevices.Count) devices" } catch { - Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($TenantFilter) -message "Failed to set alias. Error:$($_.Exception.Message)" -Sev 'Error' + Write-LogMessage -user "CIPP" -API $APINAME -tenant "None" -message "Failed to set PSA Asset Detail. Error:$($_.Exception.Message)" -Sev 'Error' throw "Failed to set alias: $($_.Exception.Message)" } }