summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-04-30 14:50:00 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-04-30 14:50:00 -0400
commit91e701881e693d6f5c36cb7e4cb0351309db4cec (patch)
tree229eb1384109f0a0b0bab60c6f698d6cf5084e2c /src/util
parentfix disable color on single column output (diff)
downloadlazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.tar.gz
lazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.tar.bz2
lazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.zip
finish ed
Diffstat (limited to 'src/util')
-rw-r--r--src/util/shared.c2
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;
}