From b62fda99c32f3b2a91994ac653d6ad6758af18f8 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Fri, 30 May 2008 17:51:14 +0200 Subject: [PATCH] exit if loading/parsing of configuration file fails Signed-off-by: Julien Danjou --- awesome.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awesome.c b/awesome.c index c9f028b56..fd3613032 100644 --- a/awesome.c +++ b/awesome.c @@ -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);