Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated warning message to output on stderr #8396

Merged
merged 3 commits into from
Aug 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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