From d36e27227228cf8009c40d243a3e7e7365f370a1 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 16 Oct 2016 21:27:40 +0300 Subject: [PATCH] show latest error in the config file at init --- client.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)