How can I display a ‘naked’ error message in PowerShell without an accompanying stacktrace?
Preface re what doesn’t work: Setting the $ErrorView preference variable $ErrorView variable to ‘CategoryView’ causes PowerShell to output concise, single-line error representations instead, but this representation may not always include enough information, because the error message is typically not included; on the plus side, the text passed to Throw “…” is reflected, but, by contrast, … Read more