1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Log fatal for windows app when fails to start

This commit is contained in:
Mark McDowall 2013-09-06 23:38:31 -07:00
parent 54b83e2e91
commit 0725f865c1

View File

@ -29,6 +29,7 @@ public static void Main(string[] args)
} }
catch (Exception e) catch (Exception e)
{ {
Logger.FatalException("EPIC FAIL: " + e.Message, e);
var message = string.Format("{0}: {1}", e.GetType().Name, e.Message); var message = string.Format("{0}: {1}", e.GetType().Name, e.Message);
MessageBox.Show(text: message, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!"); MessageBox.Show(text: message, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!");
} }