@@ -1158,8 +1158,7 @@ loadModule outh f
11581158 = idrisCatch (loadModule' outh f)
11591159 (\e -> do setErrSpan (getErrSpan e)
11601160 ist <- getIState
1161− msg <- showErr e
1162− ihputStrLn outh msg
1161+ ihWarn outh (getErrSpan e) $ pprintErr ist e
11631162 return "")
11641163
11651164{- | Load idris module -}
@@ -1206,7 +1205,7 @@ loadSource' h lidr r
12061205 = idrisCatch (loadSource h lidr r)
12071206 (\e -> do setErrSpan (getErrSpan e)
12081207 ist <- getIState
1209− ihRenderError h (pprintErr ist e))
1208+ ihWarn h (getErrSpan e) (pprintErr ist e))
12101209
12111210{- | Load Idris source code-}
12121211loadSource :: Handle -> Bool -> FilePath -> Idris ()