File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ Process{
181181 # Validate Port-Range
182182 if ($StartPort -gt $EndPort )
183183 {
184- Write-Error - Message " Invalid Port-Range... Check your input!" - Category InvalidArgument - ErrorAction Stop
184+ throw " Invalid Port-Range... Check your input!"
185185 }
186186
187187 # Check if host is reachable
@@ -302,7 +302,7 @@ Process{
302302 $Progress_Percent = 100
303303 }
304304
305- Write-Progress - Activity " Setting up jobs..." - Id 1 - Status " Current Port: $Port " - PercentComplete ($Progress_Percent )
305+ Write-Progress - Activity " Setting up jobs..." - Id 1 - Status " Current Port: $Port " - PercentComplete ($Progress_Percent )
306306
307307 # Create mew job
308308 $Job = [System.Management.Automation.PowerShell ]::Create().AddScript($ScriptBlock ).AddParameters($ScriptParams )
You can’t perform that action at this time.
0 commit comments