1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 01:06:30 +00:00

Throwing a better exception.

This commit is contained in:
Mark McDowall 2012-01-31 12:18:03 -08:00
parent fb0b487e6d
commit 3b0d989cfb

View file

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Helpers
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