Skip to content

PoshCode/ErrorView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell ErrorView

A module to help customize your view of Errors in PowerShell

This is a very simple module. It exports one important command: Format-Error and a handful of formatting commands:

  • ConvertTo-CategoryErrorView
  • ConvertTo-NormalErrorView
  • ConvertTo-SimpleErrorView

But more importantly, when it's imported, it allows you to override PowerShell's error formatting by setting the global $ErrorView variable to something like "SingleLine" and writing a function ConvertTo-SingleLineErrorView (i.e. ConvertTo-<name>ErrorView), and of course, it provides a "Simple" error view on top of PowerShell's existing "Normal" and "Category" views.

Some Examples of Formatted Errors

About

An attempt to simplify and customize error views

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published