mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-20 19:12:02 +00:00
Give reason to why writing the object file fails
This commit is contained in:
1 parent
42faffe6f3
commit
03ed914714
1 file changed
+2
-2
+2
-2
@@ -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