Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

try catch powershell error message

try{
#do something 

}catch{
  #if this block is reached $_ will contain the error
  
  write-host $_ 
}
 
PREVIOUS NEXT
Tagged: #catch #powershell #error #message
ADD COMMENT
Topic
Name
6+9 =