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.
This commit is contained in:
RoosterDragon
2015-12-08 22:51:55 +00:00
parent 47224bca40
commit 765bc4fa72

View File

@@ -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);
}
}