aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory/MemoryProtectionException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Memory/MemoryProtectionException.cs')
-rw-r--r--src/Ryujinx.Memory/MemoryProtectionException.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.Memory/MemoryProtectionException.cs b/src/Ryujinx.Memory/MemoryProtectionException.cs
index 27e950a1..e5606e99 100644
--- a/src/Ryujinx.Memory/MemoryProtectionException.cs
+++ b/src/Ryujinx.Memory/MemoryProtectionException.cs
@@ -1,4 +1,5 @@
using System;
+using System.Runtime.InteropServices;
namespace Ryujinx.Memory
{
@@ -8,7 +9,7 @@ namespace Ryujinx.Memory
{
}
- public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\".")
+ public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\": {Marshal.GetLastPInvokeErrorMessage()}")
{
}