diff --git a/client.go b/client.go index eece486..7969c65 100644 --- a/client.go +++ b/client.go @@ -44,12 +44,13 @@ func client() { p := newParser(rcFile) for p.parse() { - if p.err != nil { - app.ui.message = "see the log file for errors in the configuration file" - log.Print(p.err) - } p.expr.eval(app, nil) } + + if p.err != nil { + app.ui.message = p.err.Error() + log.Print(p.err) + } } app.ui.draw(app.nav)