Change InvalidOperationException to PSInvalidOperationException because monad code looks only for PS version to rethrow MissingMandatoryParameter exception.
This commit is contained in:
parent
4c1ee1c589
commit
969dc932ec
1 changed files with 3 additions and 3 deletions
|
@ -82,7 +82,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,7 +162,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue