removed swallowed exceptions

This commit is contained in:
Luke Pulverenti
2013-05-28 13:32:50 -04:00
parent 969bc00098
commit 110d1e6fbe
5 changed files with 27 additions and 35 deletions

View File

@@ -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
{