Skip to content

Commit

Permalink
Put errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
xsebek committed Aug 3, 2023
1 parent ed7d03a commit 95cb9e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Swarm/Doc/Pedagogy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,8 @@ loadScenarioCollection :: IO ScenarioCollection
loadScenarioCollection = simpleErrorHandle $ do
entities <- ExceptT loadEntities
(failures, loadedScenarios) <- liftIO $ loadScenariosWithWarnings entities
when (notNull failures) $
liftIO $
hPutStrLn stderr "Loading failures: " >> mapM_ (T.putStrLn . prettyFailure) failures
when (notNull failures) . liftIO $
hPutStrLn stderr "Loading failures: " >> mapM_ (T.hPutStrLn stderr . prettyFailure) failures
return loadedScenarios

renderUsagesMarkdown :: CoverageInfo -> Text
Expand Down

0 comments on commit 95cb9e7

Please sign in to comment.