Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Sentry
0.2.0
public/Invoke-WithSentry.ps1
.
"$publicDir/Out-Sentry.ps1"
function
Invoke-WithSentry
{
param
(
[scriptblock]
$ScriptBlock
)
try
{
&
$ScriptBlock
}
catch
{
$_
|
Out-Sentry
throw
}
}