Skip to content

Commit

Permalink
Redownload build plan if parsing fails #1702
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Jan 27, 2016
1 parent 93d85ff commit 0347cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/BuildPlan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ loadBuildPlan name = do
req <- parseUrl $ T.unpack url
$logSticky $ "Downloading " <> renderSnapName name <> " build plan ..."
$logDebug $ "Downloading build plan from: " <> url
_ <- download req { checkStatus = handle404 } fp
_ <- redownload req { checkStatus = handle404 } fp
$logStickyDone $ "Downloaded " <> renderSnapName name <> " build plan."
liftIO (decodeFileEither $ toFilePath fp) >>= either throwM return

Expand Down

0 comments on commit 0347cd1

Please sign in to comment.