Created
July 19, 2021 17:46
-
-
Save ferrata/97eefa07374da264cdfd8a2431418cc9 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
Set-StrictMode -Version Latest | |
$ErrorActionPreference = "Stop" | |
function Main() { | |
# ... | |
} | |
try { | |
Main | |
} | |
catch { | |
$_.ErrorDetails | |
$_.ScriptStackTrace | |
throw | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment