You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Use an error_exit macro for tools
This commit is contained in:
@@ -9,8 +9,7 @@ void scan_file(const char *filename, bool strict) {
|
||||
FILE *f = fopen(filename, "rb");
|
||||
if (!f) {
|
||||
if (strict) {
|
||||
fprintf(stderr, "Could not open file \"%s\": %s\n", filename, strerror(errno));
|
||||
exit(1);
|
||||
error_exit("Could not open file \"%s\": %s\n", filename, strerror(errno));
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user