Skip to content

Commit

Permalink
Fixed bug with continueOnError switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatos committed Feb 17, 2010
1 parent 48fa24b commit ef610b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions examples/continueonerror.ps1
@@ -0,0 +1,14 @@
Task default -Depends TaskA

Task TaskA -Depends TaskB {
"Task - A"
}

Task TaskB -Depends TaskC -ContinueOnError {
"Task - B"
throw "I failed on purpose!"
}

Task TaskC {
"Task - C"
}
2 changes: 1 addition & 1 deletion psake.psm1
Expand Up @@ -126,7 +126,7 @@ function ExecuteTask
"-"*70
"Error in Task [$taskName] $_"
"-"*70
continue
#continue
}
else
{
Expand Down

0 comments on commit ef610b3

Please sign in to comment.