From 6348dcb6e74df55772ee8cc70937a50d0eb00346 Mon Sep 17 00:00:00 2001 From: offtkp Date: Fri, 27 Sep 2024 01:28:37 +0300 Subject: [PATCH] Error reporting on failed memory allocation --- src/core/address_space.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index 3950bd5fe..a9550e707 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -72,7 +72,7 @@ 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;