Skip to content

Commit b02c971

Browse files
committed
call functions
1 parent c615b27 commit b02c971

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

LeanUtils/Utils.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,17 @@ def extractInfoTrees (fileName : System.FilePath) : IO (FileMap × List InfoTree
7272
let (header, parserState, messages) ← Parser.parseHeader inputCtx
7373
if Lean.MessageLog.hasErrors messages then
7474
IO.println s!"Ran into errors while parsing the header of {fileName}"
75+
MessageLog.printErrors messages
7576
-- TODO: do we need to specify the main module here?
7677
let (env, messages) ← processHeader header {} messages inputCtx
7778
if Lean.MessageLog.hasErrors messages then
7879
IO.println s!"Ran into errors whist processing the header of {fileName}"
80+
MessageLog.printErrors messages
7981
let commandState := Command.mkState env messages
8082
let frontendState ← IO.processCommands inputCtx parserState commandState
8183
if Lean.MessageLog.hasErrors frontendState.commandState.messages then
8284
IO.println s!"Ran into errors whist processing the commands in {fileName}"
85+
MessageLog.printErrors messages
8386
let fileMap := FileMap.ofString input
8487
return (fileMap, frontendState.commandState.infoState.trees.toList)
8588

0 commit comments

Comments
 (0)