Skip to content

Commit

Permalink
Merge pull request commercialhaskell#2445 from afcowie/fix-output-new…
Browse files Browse the repository at this point in the history
…line

Only call logWarn if there's anything to report
  • Loading branch information
Blaisorblade authored Aug 5, 2016
2 parents 8e61e9a + 5a00ac3 commit de73854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stack/Fetch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,9 @@ fetchPackages' mdistDir toFetchAll = do
S.writeFile cabalFP $ tfCabal toFetch

atomically $ modifyTVar outputVar $ Map.insert ident destDir
$logWarn $ mconcat $ map (\(path, entryType) -> "Unexpected entry type " <> entryType <> " for entry " <> T.pack path) unexpectedEntries

F.forM_ unexpectedEntries $ \(path, entryType) ->
$logWarn $ "Unexpected entry type " <> entryType <> " for entry " <> T.pack path

-- | Internal function used to unpack tarball.
--
Expand Down

0 comments on commit de73854

Please sign in to comment.