Change error to Throw
This commit is contained in:
@@ -39,7 +39,7 @@ function Edit-ZertoVra {
|
|||||||
# Get the current VRA information for use if an updated parameter is not supplied
|
# Get the current VRA information for use if an updated parameter is not supplied
|
||||||
$vra = Get-ZertoVra -vraIdentifier $vraIdentifier
|
$vra = Get-ZertoVra -vraIdentifier $vraIdentifier
|
||||||
if ( -not $vra ) {
|
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
|
# Nothing to Do
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#TODO: Refactor
|
#TODO: Refactor
|
||||||
|
|||||||
Reference in New Issue
Block a user