From: Joshua Kwan Date: Mon, 26 Jan 2004 16:50:13 +0000 (+0000) Subject: bail out if you specified a config file, and it's ENOENT - less confusing X-Git-Tag: v1.6.1-roc-dev~522 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=1547d8cbdc765b16477df5546cf658fd80e3cd87;p=dgamelaunch bail out if you specified a config file, and it's ENOENT - less confusing git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@176 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index c624fae..257d154 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -158,8 +158,8 @@ create_config () } else { - fprintf(stderr, "Warning: can't find or open %s for reading\n", config); - myconfig = &defconfig; + fprintf(stderr, "ERROR: can't find or open %s for reading\n", config); + graceful_exit(104); return; }