@@ -317,8 +317,9 @@ elabloop info fn d prompt prf e prev h env
317317 (d, prev', st, done, prf', env', res) <-
318318 idrisCatch
319319 (case cmd of
320− Left err ->
321− return (False, prev, e, False, prf, env, Left . Msg . show . fixColour (idris_colourRepl ist) . parseErrorDoc $ err)
320+ Left err -> do
321+ msg <- Left . Msg . show <$> formatMessage err
322+ return (False, prev, e, False, prf, env, msg)
322323 Right (Left cmd') ->
323324 case cmd' of
324325 EQED -> do hs <- lifte e get_holes
@@ -433,7 +434,9 @@ ploop fn d prompt prf e h
433434 _ -> return ()
434435 (d, st, done, prf', res) <- idrisCatch
435436 (case cmd of
436− Left err -> return (False, e, False, prf, Left . Msg . show . fixColour (idris_colourRepl i) . parseErrorDoc $ err)
437+ Left err -> do
438+ msg <- Left . Msg . show <$> formatMessage err
439+ return (False, e, False, prf, msg)
437440 Right Undo -> do (_, st) <- elabStep e loadState
438441 return (True, st, False, init prf, Right $ iPrintResult "")
439442 Right ProofState -> return (True, e, False, prf, Right $ iPrintResult "")