diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/std/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/std/file.c b/src/std/file.c index 3ca94b0..bd0d8cc 100644 --- a/src/std/file.c +++ b/src/std/file.c @@ -183,7 +183,7 @@ typedef enum { static CHECK_RESULT int file_get_type(const char *filepath, FileType *type) { struct stat file_stats; if(stat(filepath, &file_stats) == -1) { - amal_log_error("file_get_type: %s failed: ", filepath, strerror(errno)); + amal_log_error("file_get_type: %s failed, error: %s", filepath, strerror(errno)); return -1; } @@ -213,7 +213,7 @@ int read_whole_file(const char *filepath, Buffer *data_result) { if(!file) { int error; error = errno; - amal_log_error("read_whole_file: %s failed: ", filepath, strerror(error)); + amal_log_error("read_whole_file: %s failed, error: %s", filepath, strerror(error)); return error; } |