exit if loading/parsing of configuration file fails

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Gehring 2008-05-30 17:51:14 +02:00 committed by Julien Danjou
parent 83534783c0
commit b62fda99c3
1 changed files with 2 additions and 1 deletions

View File

@ -386,7 +386,8 @@ main(int argc, char **argv)
/* parse config */
if(!confpath)
confpath = config_file();
luaA_parserc(confpath);
if (!luaA_parserc(confpath))
eprint("failed to load/parse configuration file %s", confpath);
/* init cursors */
globalconf.cursor[CurNormal] = create_font_cursor(CURSOR_LEFT_PTR);