Skip to content

Commit

Permalink
specify value name in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnoyingRain5 committed Jan 18, 2024
1 parent c479df1 commit 9d4ae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CrankItUp.Game/src/JobjectGetValueOrFail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static T GetValueOrFail<T>(this JToken token, string name)
.TryGetValue(name, StringComparison.CurrentCulture, out JToken value) == false
)
{
throw new ArgumentException("Value not found!");
throw new ArgumentException("Value " + name + " not found!");
}
return value.Value<T>();
}
Expand Down

0 comments on commit 9d4ae1c

Please sign in to comment.