mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix AnimeBytes caps, Change to 4.5 #117, change all trackers to retry failed requests
This commit is contained in:
@@ -38,5 +38,23 @@ namespace Jackett.Utils
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
|
||||
public static string GetExceptionDetails(this Exception exception)
|
||||
{
|
||||
var properties = exception.GetType()
|
||||
.GetProperties();
|
||||
var fields = properties
|
||||
.Select(property => new {
|
||||
Name = property.Name,
|
||||
Value = property.GetValue(exception, null)
|
||||
})
|
||||
.Select(x => String.Format(
|
||||
"{0} = {1}",
|
||||
x.Name,
|
||||
x.Value != null ? x.Value.ToString() : String.Empty
|
||||
));
|
||||
return String.Join("\n", fields);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user