Created
June 7, 2019 06:21
-
-
Save chriskuech/d3421a474678cca7819fca848bfa2102 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
$ErrorActionPreference = "Stop" | |
# an error will thrown and caught, so you wont see it | |
try { | |
throw "something bad happened..." | |
} catch { | |
Write-Host "It looks like $_, but everything's still fine." | |
} finally { | |
Write-Host "I knew I would get here eventually" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment