mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix showing console error when settings directory cannot be created
This commit is contained in:
@@ -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 () =>
|
||||||
|
Reference in New Issue
Block a user