From d9cacfce0c8423b8bbc5c3a0b1c6080a0b370f3f Mon Sep 17 00:00:00 2001 From: Konstantin Weddige Date: Thu, 29 Nov 2018 16:55:52 +0100 Subject: [PATCH] Stop catching everything --- jaws-enum.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jaws-enum.ps1 b/jaws-enum.ps1 index d6e117f..cfa1cfd 100644 --- a/jaws-enum.ps1 +++ b/jaws-enum.ps1 @@ -267,12 +267,13 @@ if ($OutputFilename.length -gt 0) Try { [io.file]::OpenWrite($OutputFilename).close() - JAWS-ENUM } Catch { Write-Warning "`nUnable to write to output file $OutputFilename, Check path and permissions" + Break } + JAWS-ENUM } else {