mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Throwing a better exception.
This commit is contained in:
parent
fb0b487e6d
commit
3b0d989cfb
@ -20,7 +20,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
|
||||
|
||||
if (split.Count() != 3)
|
||||
{
|
||||
throw new ArgumentException("TimeSpan is invalid");
|
||||
throw new ArgumentException("Expected 0:0:0 format, but received: " + reader.Value);
|
||||
}
|
||||
|
||||
return new TimeSpan(int.Parse(split[0]), // hours
|
||||
|
Loading…
Reference in New Issue
Block a user