mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Improve error message of Start-NativeExecution
This commit is contained in:
1 parent
ec45c9c8dc
commit
811f052ae9
1 file changed
+1
-1
+1
-1
@@ -819,7 +819,7 @@ function script:Start-NativeExecution([scriptblock]$sb)
|
|||||||
# point to the obsolete value
|
# point to the obsolete value
|
||||||
if ($LASTEXITCODE -ne 0)
|
if ($LASTEXITCODE -ne 0)
|
||||||
{
|
{
|
||||||
throw "Execution failed with exit code $LASTEXITCODE"
|
throw "Execution of {$sb} failed with exit code $LASTEXITCODE"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in new issue
Block a user