summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Inheritance/SGame.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-23 20:23:42 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-23 20:23:42 -0500
commit1dc3f1013f9aa654bdcf22cdd22f1efd3d5d2315 (patch)
tree4f8f2de9800434d099aaf2f3b294a21068c6facb /src/StardewModdingAPI/Inheritance/SGame.cs
parent651388c818fbac331e28c07c6fd101c6fa61685c (diff)
downloadSMAPI-1dc3f1013f9aa654bdcf22cdd22f1efd3d5d2315.tar.gz
SMAPI-1dc3f1013f9aa654bdcf22cdd22f1efd3d5d2315.tar.bz2
SMAPI-1dc3f1013f9aa654bdcf22cdd22f1efd3d5d2315.zip
log relevant details when a ReflectionTypeLoadException is caught by SMAPI
Diffstat (limited to 'src/StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r--src/StardewModdingAPI/Inheritance/SGame.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Inheritance/SGame.cs b/src/StardewModdingAPI/Inheritance/SGame.cs
index 5484bfc2..93d56553 100644
--- a/src/StardewModdingAPI/Inheritance/SGame.cs
+++ b/src/StardewModdingAPI/Inheritance/SGame.cs
@@ -7,6 +7,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using StardewModdingAPI.Events;
+using StardewModdingAPI.Framework;
using StardewValley;
using StardewValley.BellsAndWhistles;
using StardewValley.Locations;
@@ -334,7 +335,7 @@ namespace StardewModdingAPI.Inheritance
}
catch (Exception ex)
{
- this.Monitor.Log($"An error occured in the base update loop: {ex}", LogLevel.Error);
+ this.Monitor.Log($"An error occured in the base update loop: {ex.GetLogSummary()}", LogLevel.Error);
Console.ReadKey();
}
@@ -766,7 +767,7 @@ namespace StardewModdingAPI.Inheritance
}
catch (Exception ex)
{
- this.Monitor.Log($"An error occured in the overridden draw loop: {ex}", LogLevel.Error);
+ this.Monitor.Log($"An error occured in the overridden draw loop: {ex.GetLogSummary()}", LogLevel.Error);
}
if (SGame.Debug)