From c73fad6772a186edbf5097e902569e703684ac00 Mon Sep 17 00:00:00 2001 From: Paris Oplopoios Date: Fri, 27 Sep 2024 01:56:59 +0300 Subject: [PATCH] Error reporting on failed memory allocation (#1091) * Error reporting on failed memory allocation * Formatting --- src/core/address_space.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index 3950bd5fe..48748e4c3 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -72,7 +72,8 @@ struct AddressSpace::Impl { } reduction += ReductionOnFail; } - ASSERT_MSG(virtual_base, "Unable to reserve virtual address space!"); + ASSERT_MSG(virtual_base, "Unable to reserve virtual address space: {}", + Common::GetLastErrorMsg()); // Take the reduction off of the system managed area, and leave the others unchanged. system_managed_base = virtual_base;