Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 939 Bytes

Write-AvmError.md

File metadata and controls

46 lines (30 loc) · 939 Bytes

Write-AvmError

Synopsis

Report an error through the shared AVM diagnostic output.

Description

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.

Syntax

Write-AvmError [-ErrorRecord] <ErrorRecord> [<CommonParameters>]

Parameters

-ErrorRecord

The PowerShell error record to report.

Property Value
Type ErrorRecord
Required true
Position 1
Default value
Accept pipeline input false
Accept wildcard characters false

Examples

EXAMPLE 1

try { Invoke-AvmTestUnit } catch { Write-AvmError -ErrorRecord $_; throw }

Outputs

  • None. Diagnostic output is written to the host.