show latest error in the config file at init
This commit is contained in:
parent
5e2028e943
commit
d36e272272
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user