diff options
Diffstat (limited to '')
-rw-r--r-- | src/util/shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/shared.c b/src/util/shared.c index c5c22e9..d512972 100644 --- a/src/util/shared.c +++ b/src/util/shared.c @@ -32,7 +32,7 @@ FILE* get_file_s(const char* path, const char* type) { read: file = fopen(path, type); if (file == NULL) { - fprintf(stderr, "error: failed to open file %s: %s\n", path, strerror(errno)); + fprintf(stderr, "error: failed to %s file %s: %s\n", type[0] == 'r' ? "read" : "write", path, strerror(errno)); } return file; } |