mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
rgblib: improve file open error message
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <ctype.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -85,7 +86,7 @@ main(int argc, char *argv[])
|
||||
argv[argn]);
|
||||
} else
|
||||
errx(EX_NOINPUT,
|
||||
"Unable to write module");
|
||||
"Unable to write module '%s' : %s", argv[argn], strerror(errno));
|
||||
} else
|
||||
errx(EX_NOINPUT, "Module not found");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user