better error log + fix broken accept on file creation error

This commit is contained in:
2023-12-13 15:45:36 +01:00
parent abf2645099
commit 5995059777
2 changed files with 6 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include <filesystem>
#include <fstream>
#include <iostream>
#include <cstring>
struct FileRWMapped : public FileI {
@@ -25,7 +26,7 @@ struct FileRWMapped : public FileI {
_file_map.map(std::string{file_path}, 0, file_size, err);
if (err) {
// TODO: errro
std::cerr << "FileRWMapped error: mapping file failed " << err << "\n";
return;
}
}