mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 06:17:08 -04:00
Fixed: Error trying to notify user when process not UserInteractive
This commit is contained in:
parent
b7a55daa61
commit
45a72c7918
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ namespace NzbDrone
|
|||
{
|
||||
Logger.Fatal(e, "EPIC FAIL");
|
||||
var message = string.Format("{0}: {1}", e.GetType().Name, e.ToString());
|
||||
MessageBox.Show($"{e.GetType().Name}: {e.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…
Add table
Add a link
Reference in a new issue