Last active
November 10, 2019 10:01
-
-
Save MateuszNad/62c8f4a1e5f65c3bdf493102e33e53ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Test-Trap { | |
trap {"Error found: $_"} | |
$WebSite = Invoke-WebRequest -Uri "https://google.tv" -TimeoutSec 5 | |
Write-Output $WebSite.StatusDescription | |
} | |
Test-Trap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment