Log fatal for windows app when fails to start

pull/4/head
Mark McDowall 11 years ago
parent 54b83e2e91
commit 0725f865c1

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

Loading…
Cancel
Save