From 765bc4fa726c8b053333db105923a1b02ef43e8e Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Tue, 8 Dec 2015 22:51:55 +0000 Subject: [PATCH] When the SDL hardware cursor fails, ensure more of the error message is logged. Capture the useful details from the inner exception into the message, as this will be logged. --- OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index 51fbbfb5f0..f0824c25fd 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -109,7 +109,7 @@ namespace OpenRA.Platforms.Default } catch (Exception ex) { - throw new InvalidDataException("Failed to create hardware cursor `{0}`".F(name), ex); + throw new InvalidDataException("Failed to create hardware cursor `{0}` - {1}".F(name, ex.Message), ex); } }