From 9ca0f8325668e95f5b59b0f048467564cc4e3607 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Tue, 16 Feb 2016 13:55:10 +0100 Subject: [PATCH] Show content of compiler error. --- edit/editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/editor.go b/edit/editor.go index 25521599..cb21057e 100644 --- a/edit/editor.go +++ b/edit/editor.go @@ -131,7 +131,7 @@ func (ed *Editor) refresh(fullRefresh bool) error { _, err := ed.evaler.Compile(name, src, n) if err != nil { if err, ok := err.(*errutil.ContextualError); ok { - ed.addTip("compiler error highlighted") + ed.addTip("compiler error: %s", err) p := err.Pos() for i, token := range ed.tokens { if token.Node.Begin() <= p && p < token.Node.End() {