diff options
author | Tom Smeding <tom@tomsmeding.com> | 2021-02-07 11:29:51 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2021-02-07 11:29:51 +0100 |
commit | 8585a88eb3caa5cc4af67a4c155c1571bb54c0c8 (patch) | |
tree | ea36bbbad5cafed56e444c056faecd81d162542e | |
parent | 845c336ca9148d1fab732f731e97fbc99c4db193 (diff) |
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -35,9 +35,8 @@ static bool write_library(const char *path) { } fwrite(libintercept_so, 1, libintercept_so_len, f); - fclose(f); - if (ferror(f) != 0) { - fprintf(stderr, "Could not write to temporary directory\n"); + if (fclose(f) != 0) { + fprintf(stderr, "Could not write to temporary directory (%s)\n", strerror(errno)); return false; } |