aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-28 13:32:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-28 13:32:50 -0400
commit110d1e6fbef39959f7c7b99eca6bbb0bc41dc218 (patch)
tree49ba780a161e5170b6790db675f3034c40db3f09 /MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs
parent969bc00098f8069862d5049c296b905826868ada (diff)
removed swallowed exceptions
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs b/MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs
index 33e9c7fe3..a0acd523e 100644
--- a/MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Sqlite/SQLiteItemRepository.cs
@@ -236,15 +236,19 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
+
+ throw;
}
catch (Exception e)
{
- Logger.ErrorException("Failed to save item:", e);
+ Logger.ErrorException("Failed to save items:", e);
if (transaction != null)
{
transaction.Rollback();
}
+
+ throw;
}
finally
{
@@ -439,15 +443,19 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
+
+ throw;
}
catch (Exception e)
{
- Logger.ErrorException("Failed to save item:", e);
+ Logger.ErrorException("Failed to save children:", e);
if (transaction != null)
{
transaction.Rollback();
}
+
+ throw;
}
finally
{