diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-08-23 16:18:51 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-13 16:21:27 -0400 |
commit | e4d5b1d0dba0a7c2078327ef298d32bc8d45f25b (patch) | |
tree | ba908d5bc7f607b3c49058e1ffd737d982fe0728 | |
parent | 23fe0c24a02f4275e93e775c5e1bf1b74fcb93a3 (diff) | |
download | SMAPI-e4d5b1d0dba0a7c2078327ef298d32bc8d45f25b.tar.gz SMAPI-e4d5b1d0dba0a7c2078327ef298d32bc8d45f25b.tar.bz2 SMAPI-e4d5b1d0dba0a7c2078327ef298d32bc8d45f25b.zip |
fix 'unknown file extension' error not listing .json as a valid extension
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI/Framework/ContentManagers/ModContentManager.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index 3addb2d0..2c3db5d1 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -7,6 +7,7 @@ These changes have not been released yet. * SMAPI now prevents invalid event preconditions from crashing the game (thanks to berkayylmao!). * SMAPI now prevents more invalid dialogues from crashing the game. * Fixed errors during early startup not shown before exit. + * Fixed various error messages and inconsistent spelling. * For the web UI: * When filtering the mod list, clicking a mod link now automatically adds it to the visible mods. diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs index 6485b3d4..2c50ec04 100644 --- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs +++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs @@ -136,7 +136,7 @@ namespace StardewModdingAPI.Framework.ContentManagers throw GetContentError($"can't read unpacked map file directly from the underlying content manager. It must be loaded through the mod's {typeof(IModHelper)}.{nameof(IModHelper.Content)} helper."); default: - throw GetContentError($"unknown file extension '{file.Extension}'; must be one of '.png', '.tbin', or '.xnb'."); + throw GetContentError($"unknown file extension '{file.Extension}'; must be one of '.json', '.png', '.tbin', or '.xnb'."); } } catch (Exception ex) when (!(ex is SContentLoadException)) |