print mapping error message

This commit is contained in:
Green Sky 2025-03-03 21:08:49 +01:00
parent 1780bd097a
commit 7a54552bd2
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A

View File

@ -43,7 +43,7 @@ struct File2RWMapped : public File2I {
_file_map.map(native_file_path.u8string(), 0, _file_size, err); _file_map.map(native_file_path.u8string(), 0, _file_size, err);
if (err) { if (err) {
std::cerr << "FileRWMapped error: mapping file failed " << err << "\n"; std::cerr << "FileRWMapped error: mapping file failed: " << err.message() << " (" << err << ")\n";
return; return;
} }
} }