Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ring/teddycloud into develop
  • Loading branch information
SciLor committed Oct 2, 2024
2 parents b7e8d54 + a94ca01 commit b71cf5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/fs_ext.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

#include "fs_ext.h"

#include <errno.h> // for errno
#include <stdint.h> // for uint8_t
#include <stdio.h> // for fopen, FILE
#include <stdlib.h> // for NULL, free
#include <string.h> // for strdup, strlen, strrchr
#include <string.h> // for strdup, strlen, strrchr, strerror
#include "error.h" // for NO_ERROR, ERROR_END_OF_FILE, ERROR_FILE_...
#include "debug.h" // for TRACE_INFO, TRACE_ERROR, TRACE_LEVEL_INFO
#include "fs_port_config.h" // for PATH_SEPARATOR
#include "os_port.h" // for osStrlen

Expand Down Expand Up @@ -37,6 +39,10 @@ FsFile *fsOpenFileEx(const char_t *path, char *mode)
// Open the specified file
fp = fopen(path, mode);

if (fp == NULL) {
TRACE_ERROR("Could not open file %s: %s\n", path, strerror(errno));
}

// Return a handle to the file
return fp;
}
Expand Down

0 comments on commit b71cf5b

Please sign in to comment.