Skip to content

Commit

Permalink
Merge pull request #1093 from matthid/fallbackOnCacheErrors
Browse files Browse the repository at this point in the history
Fallback when caching fails
  • Loading branch information
forki committed Jan 21, 2016
2 parents 32efd0a + 1746345 commit f2c4997
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 218 deletions.
4 changes: 2 additions & 2 deletions src/app/FAKE/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ try
//TODO if printDetails then printEnvironment cmdArgs args

let useCache = not (fakeArgs.Contains <@ Cli.NoCache @>)
if not (runBuildScriptWithFsiArgsAt printDetails fsiArgs envVars useCache true) then Environment.ExitCode <- 1
if not (runBuildScriptWithFsiArgsAt printDetails fsiArgs envVars useCache) then Environment.ExitCode <- 1
else if printDetails then log "Ready."

()
Expand All @@ -140,7 +140,7 @@ try
let printDetails = containsParam "details" cmdArgs
if printDetails then
printEnvironment cmdArgs args
if not (runBuildScript printDetails buildScriptArg fsiArgs args true true) then Environment.ExitCode <- 1
if not (runBuildScript printDetails buildScriptArg fsiArgs args true) then Environment.ExitCode <- 1
else if printDetails then log "Ready."
| Some handler ->
handler.Interact()
Expand Down
Loading

0 comments on commit f2c4997

Please sign in to comment.