mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Throwing a better exception.
This commit is contained in:
parent
fb0b487e6d
commit
3b0d989cfb
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ namespace NzbDrone.Core.Helpers
|
||||||
|
|
||||||
if (split.Count() != 3)
|
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
|
return new TimeSpan(int.Parse(split[0]), // hours
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue