exit if loading/parsing of configuration file fails
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
83534783c0
commit
b62fda99c3
|
@ -386,7 +386,8 @@ main(int argc, char **argv)
|
||||||
/* parse config */
|
/* parse config */
|
||||||
if(!confpath)
|
if(!confpath)
|
||||||
confpath = config_file();
|
confpath = config_file();
|
||||||
luaA_parserc(confpath);
|
if (!luaA_parserc(confpath))
|
||||||
|
eprint("failed to load/parse configuration file %s", confpath);
|
||||||
|
|
||||||
/* init cursors */
|
/* init cursors */
|
||||||
globalconf.cursor[CurNormal] = create_font_cursor(CURSOR_LEFT_PTR);
|
globalconf.cursor[CurNormal] = create_font_cursor(CURSOR_LEFT_PTR);
|
||||||
|
|
Loading…
Reference in New Issue