Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Harshberger committed Dec 4, 2024
1 parent 0607475 commit fbf4ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
}
}
Expand Down

0 comments on commit fbf4ea4

Please sign in to comment.