Skip to content

Commit

Permalink
Updated warning message to output on stderr (#8396)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadAhmedGit authored Aug 28, 2022
1 parent ef8e495 commit 58c46d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cabal-install/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ import Distribution.Simple.Program.Db (reconfigurePrograms)
import qualified Distribution.Simple.Setup as Cabal
import Distribution.Simple.Utils
( cabalVersion, die', dieNoVerbosity, info, notice, topHandler
, findPackageDesc, tryFindPackageDesc, createDirectoryIfMissingVerbose )
, findPackageDesc, tryFindPackageDesc, createDirectoryIfMissingVerbose, warn )
import Distribution.Text
( display )
import Distribution.Verbosity as Verbosity
Expand Down Expand Up @@ -192,10 +192,10 @@ main = do
warnIfAssertionsAreEnabled :: IO ()
warnIfAssertionsAreEnabled =
assert False (return ()) `catch`
(\(_e :: AssertionFailed) -> putStrLn assertionsEnabledMsg)
(\(_e :: AssertionFailed) -> warn normal assertionsEnabledMsg)
where
assertionsEnabledMsg =
"Warning: this is a debug build of cabal-install with assertions enabled."
"this is a debug build of cabal-install with assertions enabled."

mainWorker :: [String] -> IO ()
mainWorker args = do
Expand Down

0 comments on commit 58c46d5

Please sign in to comment.