mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Give reason to why writing the object file fails
This commit is contained in:
@@ -425,8 +425,8 @@ void out_WriteObject(void)
|
||||
addexports();
|
||||
|
||||
f = fopen(tzObjectname, "wb");
|
||||
if (f == NULL)
|
||||
fatalerror("Couldn't write file '%s'\n", tzObjectname);
|
||||
if (!f)
|
||||
err(1, "Couldn't write file '%s'", tzObjectname);
|
||||
|
||||
fprintf(f, RGBDS_OBJECT_VERSION_STRING, RGBDS_OBJECT_VERSION_NUMBER);
|
||||
fputlong(RGBDS_OBJECT_REV, f);
|
||||
|
||||
Reference in New Issue
Block a user