Change error to Throw

This commit is contained in:
Wes Carroll
2019-07-20 13:49:03 -04:00
parent a78f827804
commit 9f2a6c42cd
+2 -2
View File
@@ -39,7 +39,7 @@ function Edit-ZertoVra {
# Get the current VRA information for use if an updated parameter is not supplied
$vra = Get-ZertoVra -vraIdentifier $vraIdentifier
if ( -not $vra ) {
Write-Error "VRA with Identifier: $vraIdentifier could not be found. Please check the ID and try again."
Throw "VRA with Identifier: $vraIdentifier could not be found. Please check the ID and try again."
}
}
@@ -87,4 +87,4 @@ function Edit-ZertoVra {
# Nothing to Do
}
}
#TODO: Refactor
#TODO: Refactor