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{
181
181
# Validate Port-Range
182
182
if ($StartPort -gt $EndPort )
183
183
{
184
- Write-Error - Message " Invalid Port-Range... Check your input!" - Category InvalidArgument - ErrorAction Stop
184
+ throw " Invalid Port-Range... Check your input!"
185
185
}
186
186
187
187
# Check if host is reachable
@@ -302,7 +302,7 @@ Process{
302
302
$Progress_Percent = 100
303
303
}
304
304
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 )
306
306
307
307
# Create mew job
308
308
$Job = [System.Management.Automation.PowerShell ]::Create().AddScript($ScriptBlock ).AddParameters($ScriptParams )
You can’t perform that action at this time.
0 commit comments