From 811f052ae9e0e1a6d5f1b9a6daaad224052a506a Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 18 May 2016 14:30:24 -0700 Subject: [PATCH] Improve error message of Start-NativeExecution --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 598bca12a..1938009ab 100644 --- a/build.psm1 +++ b/build.psm1 @@ -819,7 +819,7 @@ function script:Start-NativeExecution([scriptblock]$sb) # point to the obsolete value if ($LASTEXITCODE -ne 0) { - throw "Execution failed with exit code $LASTEXITCODE" + throw "Execution of {$sb} failed with exit code $LASTEXITCODE" } } finally