proper error checking when openning progs.src

This commit is contained in:
Bill Currie 2004-01-22 04:16:19 +00:00
parent 62ef6f9549
commit 3e5a103e55

View file

@ -686,6 +686,11 @@ progs_src_compile (void)
dsprintf (filename, "%s", progs_src);
src = load_file (filename->str);
if (!src) {
fprintf (stderr, "couldn't open %s: %s\n", filename->str,
strerror (errno));
return 1;
}
if (!(src = COM_Parse (src))) {
fprintf (stderr, "No destination filename. qfcc --help for info.\n");