Skip to content

Commit 429e5ea

Browse files
committed
This is not the hiedb thread - fix message
1 parent d1a4baf commit 429e5ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ghcide/src/Development/IDE/LSP/LanguageServer.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ runLanguageServer options inH outH getHieDbLoc defaultConfig onConfigurationChan
141141
logInfo (ideLogger ide) $ T.pack $ "Registering ide configuration: " <> show initConfig
142142
registerIdeConfiguration (shakeExtras ide) initConfig
143143

144-
let handleHieDbException e = do
145-
logError (ideLogger ide) (T.pack $ "Unexpected exception in hiedb thread: " <> show e)
144+
let handleServerException e = do
145+
logError (ideLogger ide) (T.pack $ "Unexpected exception in server thread: " <> show e)
146146
exitClientMsg
147-
_ <- flip forkFinally handleHieDbException $ runWithDb dbLoc $ \hiedb hieChan -> do
147+
_ <- flip forkFinally handleServerException $ runWithDb dbLoc $ \hiedb hieChan -> do
148148
putMVar dbMVar (hiedb,hieChan)
149149
forever $ do
150150
msg <- readChan clientMsgChan

0 commit comments

Comments
 (0)