]> skyeroc.xyz Git - dgamelaunch/commitdiff
bail out if you specified a config file, and it's ENOENT - less confusing
authorJoshua Kwan <joshk@triplehelix.org>
Mon, 26 Jan 2004 16:50:13 +0000 (16:50 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Mon, 26 Jan 2004 16:50:13 +0000 (16:50 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@176 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index c624fae461b29eaf857ef7f99b86f6ed418b8efb..257d154dffcad80362d283668d4c95dad232c9f1 100644 (file)
@@ -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;
     }