mirror of https://github.com/Jackett/Jackett
Fix showing console error when settings directory cannot be created
This commit is contained in:
parent
1a52731cd2
commit
f16ebe06df
|
@ -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 () =>
|
||||||
|
|
Loading…
Reference in New Issue