mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Improve error message.
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -928,7 +929,7 @@ out_BinaryFile(char *s)
|
|||||||
pPCSymbol->nValue += fsize;
|
pPCSymbol->nValue += fsize;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
} else
|
} else
|
||||||
fatalerror("File not found");
|
fatalerror("Could not open file '%s': %s", s, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -973,5 +974,5 @@ out_BinaryFileSlice(char *s, SLONG start_pos, SLONG length)
|
|||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
} else
|
} else
|
||||||
fatalerror("File not found");
|
fatalerror("Could not open file '%s': %s", s, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user