summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-08-24 20:10:57 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-08-24 20:10:57 -0400
commitaabd76f38cd22065a51269b049c9b166759307f3 (patch)
treed5a4fd741c94a04032729cdd5df3f8d8272892b1
parent58122c539325ee4471e1baf936622da0f45c9c82 (diff)
downloadSMAPI-aabd76f38cd22065a51269b049c9b166759307f3.tar.gz
SMAPI-aabd76f38cd22065a51269b049c9b166759307f3.tar.bz2
SMAPI-aabd76f38cd22065a51269b049c9b166759307f3.zip
fix path init error-handling using monitor before it's initialised
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI/Framework/SCore.cs3
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index f9bcc6ab..ff2a7105 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -6,6 +6,7 @@
* Moved save backups into a `save-backups` subfolder (instead of `Mods/SaveBackup/backups`). Note that previous backups will be deleted when you update.
* Fixed installer duplicating bundled mods if you moved them after the last install.
* Fixed crash when a mod manifest is corrupted.
+ * Fixed error-handling when initialising paths.
* Updated compatibility list.
* For modders:
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index a9ec5ee4..8368152d 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -675,7 +675,8 @@ namespace StardewModdingAPI.Framework
}
catch (Exception ex)
{
- this.Monitor.Log($"Couldn't create a path: {path}\n\n{ex.GetLogSummary()}", LogLevel.Error);
+ // note: this happens before this.Monitor is initialised
+ Console.WriteLine($"Couldn't create a path: {path}\n\n{ex.GetLogSummary()}");
}
}