## Resolve-Error ## # from http://blogs.msdn.com/b/powershell/archive/2006/12/07/resolve-error.aspx # # function Resolve-Error($ErrorRecord=$Error[0]) { $ErrorRecord | fl * -f | Out-Default $ErrorRecord.InvocationInfo | fl * -f | Out-Default $Exception = $ErrorRecord.Exception for ($i = 0; $Exception; $i++, ($Exception = $Exception.InnerException)) { "*$i* " * 15 $Exception | fl * -f | Out-Default } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8410 | Aaron Bockelie |
Root checkin, Perforce Powershell wrapper. Still lots of work to be done, namely documentation and deployment tools, for instance, get-help needs work on the majority of these tools. Additionally, the /lib structure needs a little bit of condensation, probably into major groups (depot, userspec, clientspec, group management, and so on) that way function family can exist under each resource. |