mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Change InvalidOperationException to PSInvalidOperationException because monad code looks only for PS version to rethrow MissingMandatoryParameter exception.
This commit is contained in:
1 parent
4c1ee1c589
commit
969dc932ec
1 file changed
+3
-3
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user