diff --git a/src/NzbDrone.Common/DictionaryExtensions.cs b/src/NzbDrone.Common/DictionaryExtensions.cs index 8c384fede..127f1c196 100644 --- a/src/NzbDrone.Common/DictionaryExtensions.cs +++ b/src/NzbDrone.Common/DictionaryExtensions.cs @@ -24,7 +24,7 @@ public static Dictionary Merge(this Dictionary first, Di return merged; } - public static void Add(this ICollection> collection, TKey key, TValue value) + public static void Add(this ICollection> collection, TKey key, TValue value) { collection.Add(key, value); } diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationLogger.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationLogger.cs index 1d924ab08..346d9d15b 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationLogger.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationLogger.cs @@ -44,6 +44,11 @@ public void Error(string message) _logger.Error(message); } + public void Error(Exception exception) + { + _logger.ErrorException(exception.Message, exception); + } + public void Write(string message, bool escaped) { _logger.Info(message);