Fix showing console error when settings directory cannot be created

This commit is contained in:
unknown 2015-07-18 19:02:29 -06:00
parent 1a52731cd2
commit f16ebe06df
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,8 @@ namespace Jackett
} }
catch (Exception ex) catch (Exception ex)
{ {
MessageBox.Show("Could not create settings directory. " + ex.Message); Console.WriteLine("Missing settings directory: " + AppConfigDirectory);
Console.WriteLine("Could not create settings directory. " + ex.Message);
Application.Exit(); Application.Exit();
return; return;
} }
@ -122,7 +123,6 @@ namespace Jackett
public static void RestartServer() public static void RestartServer()
{ {
ServerInstance.Stop(); ServerInstance.Stop();
ServerInstance = null; ServerInstance = null;
var serverTask = Task.Run(async () => var serverTask = Task.Run(async () =>