We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d0487 commit d1a417dCopy full SHA for d1a417d
src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs
@@ -169,8 +169,11 @@ impl SurrogateProcessManager {
169
};
170
171
if allocated_address.Value.is_null() {
172
+ // Safety: `MapViewOfFileNuma2` will set the last error code if it fails.
173
+ let error = unsafe { windows::Win32::Foundation::GetLastError() };
174
log_then_return!(
- "MapViewOfFileNuma2 failed for mem address {:?}",
175
+ "MapViewOfFileNuma2 failed with error code: {:?} for mem address {:?} ",
176
+ error,
177
raw_source_address
178
);
179
}
0 commit comments