From b10a4b410bb2d50245928bdb88a9efc05aadbe72 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 20 Jan 2018 22:18:11 -0500 Subject: [PATCH] tweak JSON error messages --- .../Framework/Serialisation/SimpleReadOnlyConverter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs b/src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs index 9308456b..5765ad96 100644 --- a/src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs +++ b/src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs @@ -50,7 +50,7 @@ namespace StardewModdingAPI.Framework.Serialisation case JsonToken.String: return this.ReadString(JToken.Load(reader).Value(), path); default: - throw new SParseException($"Can't parse {typeof(T).Name} from {reader.TokenType} (path: {reader.Path})."); + throw new SParseException($"Can't parse {typeof(T).Name} from {reader.TokenType} node (path: {reader.Path})."); } } @@ -63,7 +63,7 @@ namespace StardewModdingAPI.Framework.Serialisation /// The path to the current JSON node. protected virtual T ReadObject(JObject obj, string path) { - throw new SParseException($"Can't parse {typeof(T).Name} from object (path: {path})."); + throw new SParseException($"Can't parse {typeof(T).Name} from object node (path: {path})."); } /// Read a JSON string. @@ -71,7 +71,7 @@ namespace StardewModdingAPI.Framework.Serialisation /// The path to the current JSON node. protected virtual T ReadString(string str, string path) { - throw new SParseException($"Can't parse {typeof(T).Name} from string (path: {path})."); + throw new SParseException($"Can't parse {typeof(T).Name} from string node (path: {path})."); } } }