summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/Event/Manager.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/GHC/Event/Manager.hs')
-rw-r--r--libraries/base/GHC/Event/Manager.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/GHC/Event/Manager.hs b/libraries/base/GHC/Event/Manager.hs
index 0ca02c45c4..013850b5d2 100644
--- a/libraries/base/GHC/Event/Manager.hs
+++ b/libraries/base/GHC/Event/Manager.hs
@@ -172,7 +172,7 @@ newDefaultBackend = EPoll.new
#elif defined(HAVE_POLL)
newDefaultBackend = Poll.new
#else
-newDefaultBackend = error "no back end for this platform"
+newDefaultBackend = errorWithoutStackTrace "no back end for this platform"
#endif
-- | Create a new event manager.
@@ -212,7 +212,7 @@ failOnInvalidFile loc fd m = do
when (not ok) $
let msg = "Failed while attempting to modify registration of file " ++
show fd ++ " at location " ++ loc
- in error msg
+ in errorWithoutStackTrace msg
registerControlFd :: EventManager -> Fd -> Event -> IO ()
registerControlFd mgr fd evs =
@@ -267,7 +267,7 @@ loop mgr@EventManager{..} = do
-- in Thread.restartPollLoop. See #8235
Finished -> return ()
_ -> do cleanup mgr
- error $ "GHC.Event.Manager.loop: state is already " ++
+ errorWithoutStackTrace $ "GHC.Event.Manager.loop: state is already " ++
show state
where
go = do state <- step mgr