Report an error through the shared AVM diagnostic output.
Reports an error locally and in CI without reporting the same exception twice. Test values in the displayed message are redacted. This command does not rethrow or change the supplied error record.
Write-AvmError [-ErrorRecord] <ErrorRecord> [<CommonParameters>]The PowerShell error record to report.
| Property | Value |
|---|---|
| Type | ErrorRecord |
| Required | true |
| Position | 1 |
| Default value | |
| Accept pipeline input | false |
| Accept wildcard characters | false |
try { Invoke-AvmTestUnit } catch { Write-AvmError -ErrorRecord $_; throw }None. Diagnostic output is written to the host.