mirror of
https://github.com/SlothDpal/Relaunch-Process.git
synced 2026-10-22 06:14:16 +03:00
Send to discord error message
This commit is contained in:
1 parent
7ab58bd6e8
commit
131610eef4
1 file changed
+3
-2
@@ -334,8 +334,9 @@ namespace Process_Auto_Relaunch
|
|||||||
}
|
}
|
||||||
else if (e.Error != null)
|
else if (e.Error != null)
|
||||||
{
|
{
|
||||||
Status("Произошла ошибка! Наблюдение остановлено.", NotifyLevel.logUpdateStatus | NotifyLevel.logDiscord);
|
string error_message = "Error: " + e.Error.Message + "\n" + e.Error.StackTrace;
|
||||||
MessageBox.Show("Error: " + e.Error.Message + "/n" + e.Error.StackTrace, "Ошибка наблюдения", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
Status("Произошла ошибка! Наблюдение остановлено.\n" + error_message, NotifyLevel.logUpdateStatus | NotifyLevel.logDiscord);
|
||||||
|
MessageBox.Show(error_message, "Ошибка наблюдения", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
radioButtonDisableWathing.Checked = true;
|
radioButtonDisableWathing.Checked = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user