From 91e701881e693d6f5c36cb7e4cb0351309db4cec Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 30 Apr 2023 14:50:00 -0400 Subject: finish ed --- src/util/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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; } -- cgit v1.2.3-freya