Reduce debug output on ParseDateTimeGoLang() FormatExceptions

This commit is contained in:
kaso17
2017-01-26 11:15:30 +01:00
parent e5142d9b3f
commit 3487a19503
2 changed files with 4 additions and 4 deletions

View File

@@ -290,9 +290,9 @@ namespace Jackett.Utils
{
return DateTime.ParseExact(date, pattern, CultureInfo.InvariantCulture);
}
catch (Exception ex)
catch (FormatException ex)
{
throw new Exception(string.Format("Error while parsing DateTime \"{0}\", using layout \"{1}\" ({2}): {3}", date, layout, pattern, ex.ToString()));
throw new FormatException(string.Format("Error while parsing DateTime \"{0}\", using layout \"{1}\" ({2}): {3}", date, layout, pattern, ex.Message));
}
}
}