diff options
-rw-r--r-- | src/platform/file.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/platform/file.c b/src/platform/file.c index 497a95c..45c5b30 100644 --- a/src/platform/file.c +++ b/src/platform/file.c @@ -1,18 +1,21 @@ #include "file.h" +#include <errno.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> +#include "log.h" + const char *string_from_file(const char *path) { FILE *f = fopen(path, "rb"); if (f == NULL) { - // ERROR("Error reading file: %s. errno: %d", path, errno); + ERROR("Error reading file: %s. errno: %d", path, errno); return NULL; } if (ferror(f)) { - // ERROR("Error reading file: %s. errno: %d", path, errno); + ERROR("Error reading file: %s. errno: %d", path, errno); return NULL; } fseek(f, 0, SEEK_END); |