Commit 54e97b14 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

An OOM condition can apparently also show up as 'ExitFailure (-9)'.

See https://github.com/haskell/cabal/issues/1522#issuecomment-44381178
parent a5af309e
......@@ -841,7 +841,8 @@ printBuildFailures plan =
maybeOOM _ = ""
#else
maybeOOM e = maybe "" onExitFailure (fromException e)
onExitFailure (ExitFailure 9) =
onExitFailure (ExitFailure n)
| n == 9 || n == -9 =
"\nThis may be due to an out-of-memory condition."
onExitFailure _ = ""
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment