mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-02 06:07:19 +02:00
Fixed: Error trying to notify user when process not UserInteractive
Closes #8927
This commit is contained in:
parent
d5b4f0efa9
commit
6ecd41bc5a
@ -32,7 +32,11 @@ public static void Main(string[] args)
|
||||
{
|
||||
Logger.Fatal(e, "EPIC FAIL: " + e.Message);
|
||||
var message = string.Format("{0}: {1}", e.GetType().Name, e.ToString());
|
||||
MessageBox.Show(text: message, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!");
|
||||
|
||||
if (RuntimeInfo.IsUserInteractive)
|
||||
{
|
||||
MessageBox.Show($"{e.GetType().Name}: {e.Message}", buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user