summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-01-20 22:18:11 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-01-20 22:18:11 -0500
commitb10a4b410bb2d50245928bdb88a9efc05aadbe72 (patch)
tree7aef8a0ba9504ef9349c8e87a1628503f13890e3 /src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs
parent454a2de2949deae90de4a936fb8fa7341d4a2990 (diff)
downloadSMAPI-b10a4b410bb2d50245928bdb88a9efc05aadbe72.tar.gz
SMAPI-b10a4b410bb2d50245928bdb88a9efc05aadbe72.tar.bz2
SMAPI-b10a4b410bb2d50245928bdb88a9efc05aadbe72.zip
tweak JSON error messages
Diffstat (limited to 'src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs')
-rw-r--r--src/SMAPI/Framework/Serialisation/SimpleReadOnlyConverter.cs6
1 files 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<string>(), 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
/// <param name="path">The path to the current JSON node.</param>
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}).");
}
/// <summary>Read a JSON string.</summary>
@@ -71,7 +71,7 @@ namespace StardewModdingAPI.Framework.Serialisation
/// <param name="path">The path to the current JSON node.</param>
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}).");
}
}
}