diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-30 14:50:00 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-30 14:50:00 -0400 |
commit | 91e701881e693d6f5c36cb7e4cb0351309db4cec (patch) | |
tree | 229eb1384109f0a0b0bab60c6f698d6cf5084e2c /src/util/shared.c | |
parent | fix disable color on single column output (diff) | |
download | lazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.tar.gz lazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.tar.bz2 lazysphere-91e701881e693d6f5c36cb7e4cb0351309db4cec.zip |
finish ed
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; } |