Working with the File Systems and looking at the examples it is setting errno, and while not terribly important, the examples show (in the logging section) using strerror to return a readable string of the error:
void setup() {
Log.info("Connecting to server");
int error = connect();
if (error) {
// Get error message string
const char *message = strerror(error);
// Log message with additional attributes
Log.code(error).details(message).error("Connection error");
}
}
For the file system specifically errno is equal to ENOENT, but strerror returns nothing. Am I missing something simple?