diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-24 13:36:23 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-05-24 13:36:23 -0400 |
| commit | 7b094f3f8a89bd058852b772f2b535f4dede4f73 (patch) | |
| tree | 5fd85a29ebaee94209c98b9e243d5f2ae42a9887 /MediaBrowser.Server.Startup.Common/ApplicationHost.cs | |
| parent | 58d4534a2690389c37a7ad5bb247e6dc28c01401 (diff) | |
add error handling with migrations
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/ApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index eef8c5193..7b958779d 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -359,12 +359,18 @@ namespace MediaBrowser.Server.Startup.Common { var migrations = new List<IVersionMigration> { - new RenameXmlOptions(ServerConfigurationManager) }; foreach (var task in migrations) { - task.Run(); + try + { + task.Run(); + } + catch (Exception ex) + { + Logger.ErrorException("Error running migration", ex); + } } } @@ -379,7 +385,14 @@ namespace MediaBrowser.Server.Startup.Common foreach (var task in migrations) { - task.Run(); + try + { + task.Run(); + } + catch (Exception ex) + { + Logger.ErrorException("Error running migration", ex); + } } } |
