mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
change throw message
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
try
|
||||
{
|
||||
Import-PowerShellDataFile -Path /SomeMissingDirectory -ErrorAction Stop
|
||||
Throw "Execution OK"
|
||||
Throw "Command did not throw exception"
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -18,7 +18,7 @@
|
||||
try
|
||||
{
|
||||
Import-PowerShellDataFile ${TESTDRIVE} -ErrorAction Stop
|
||||
Throw "Execution OK"
|
||||
Throw "Command did not throw exception"
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -33,7 +33,7 @@
|
||||
try
|
||||
{
|
||||
Import-PowerShellDataFile $path -ErrorAction Stop
|
||||
Throw "Execution OK"
|
||||
Throw "Command did not throw exception"
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -47,7 +47,7 @@
|
||||
try
|
||||
{
|
||||
Import-PowerShellDataFile $path -ErrorAction Stop
|
||||
Throw "Execution OK"
|
||||
Throw "Command did not throw exception"
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user