mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-23 08:13:01 +00:00
fixed app startup
This commit is contained in:
parent
7a19b6a2b3
commit
298d6fe3bf
2 changed files with 0 additions and 5 deletions
|
@ -8,8 +8,6 @@ namespace NzbDrone.Console
|
||||||
{
|
{
|
||||||
public static class ConsoleApp
|
public static class ConsoleApp
|
||||||
{
|
{
|
||||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
||||||
|
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -21,7 +19,6 @@ public static void Main(string[] args)
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Logger.FatalException(e.Message, e);
|
|
||||||
System.Console.ReadLine();
|
System.Console.ReadLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ namespace NzbDrone
|
||||||
{
|
{
|
||||||
public static class WindowsApp
|
public static class WindowsApp
|
||||||
{
|
{
|
||||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
||||||
|
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
@ -24,7 +23,6 @@ public static void Main(string[] args)
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Logger.FatalException(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!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue