mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
proper error checking when openning progs.src
This commit is contained in:
parent
62ef6f9549
commit
3e5a103e55
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue