@@ -1158,8 +1158,7 @@ loadModule outh f
1158 = idrisCatch (loadModule' outh f)
1158 = idrisCatch (loadModule' outh f)
1159 (\e -> do setErrSpan (getErrSpan e)
1159 (\e -> do setErrSpan (getErrSpan e)
1160 ist <- getIState
1160 ist <- getIState
1161− msg <- showErr e
1161+ ihWarn outh (getErrSpan e) $ pprintErr ist e
1162− ihputStrLn outh msg
1163 return "")
1162 return "")
1165{- | Load idris module -}
1164{- | Load idris module -}
@@ -1206,7 +1205,7 @@ loadSource' h lidr r
1206 = idrisCatch (loadSource h lidr r)
1205 = idrisCatch (loadSource h lidr r)
1207 (\e -> do setErrSpan (getErrSpan e)
1206 (\e -> do setErrSpan (getErrSpan e)
1208 ist <- getIState
1207 ist <- getIState
1209− ihRenderError h (pprintErr ist e))
1208+ ihWarn h (getErrSpan e) (pprintErr ist e))
1211{- | Load Idris source code-}
1210{- | Load Idris source code-}
1212loadSource :: Handle -> Bool -> FilePath -> Idris ()
1211loadSource :: Handle -> Bool -> FilePath -> Idris ()