Thursday 28 January 2010

Powershell : Get inner errors for more info (sometimes)

Statement that fails
#                        Trap {
#  write-output "herea"
#  $_.Exception
#  $err = $_.Exception
#  while ( $err.InnerException )
#    {
#    $err = $err.InnerException
#    write-output $err.Message
#    };
#    continue
#  }


0 comments: