Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #91 from vorou/master

Exec actually checks return code
  • Loading branch information...
commit 9628f2860cb02fd2e2c1c5510d501e08c1a77413 2 parents df1fb43 + 690a9c2
@damianh damianh authored
View
2  psake.psm1
@@ -143,7 +143,7 @@ function Exec
do {
try {
- $lastexitcode = 0
+ $global:lastexitcode = 0
& $cmd
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
View
13 specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1
@@ -3,12 +3,9 @@ $framework = '3.5'
task default -depends AspNetCompiler
task AspNetCompiler {
- try {
- aspnet_compiler
+ aspnet_compiler
+ if ($LastExitCode -ne 1) {
+ throw 'Error: Could not execute aspnet_compiler'
}
- catch [Exception]{
- if ($LastExitCode -ne 1) {
- throw 'Error: Could not execute aspnet_compiler'
- }
- }
-}
+ $global:LastExitCode = 0
+}
Please sign in to comment.
Something went wrong with that request. Please try again.