chore(library/init/lean/elaborator/basic): improve cryptic error message

This commit is contained in:
Leonardo de Moura 2019-07-22 19:07:43 -07:00
parent a7f18cff12
commit b5d4e0a2fd

View file

@ -264,8 +264,8 @@ stx.ifNode
let k := n.getKind;
match tables.find k with
| some elab => elab n
| none => logError stx ("command elaborator failed, no support for syntax '" ++ toString k ++ "'"))
(fun _ => logErrorUsingCmdPos ("command elaborator failed, unexpected syntax"))
| none => logError stx ("command '" ++ toString k ++ "' has not been implemented"))
(fun _ => logErrorUsingCmdPos ("unexpected command"))
structure FrontendState :=
(elabState : ElabState)