diff options
-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; } |