Send to discord error message

This commit is contained in:
Vladimir
2024-05-29 22:13:57 +04:00
parent 7ab58bd6e8
commit 131610eef4

View File

@@ -334,8 +334,9 @@ namespace Process_Auto_Relaunch
}
else if (e.Error != null)
{
Status("Произошла ошибка! Наблюдение остановлено.", NotifyLevel.logUpdateStatus | NotifyLevel.logDiscord);
MessageBox.Show("Error: " + e.Error.Message + "/n" + e.Error.StackTrace, "Ошибка наблюдения", MessageBoxButtons.OK, MessageBoxIcon.Stop);
string error_message = "Error: " + e.Error.Message + "\n" + e.Error.StackTrace;
Status("Произошла ошибка! Наблюдение остановлено.\n" + error_message, NotifyLevel.logUpdateStatus | NotifyLevel.logDiscord);
MessageBox.Show(error_message, "Ошибка наблюдения", MessageBoxButtons.OK, MessageBoxIcon.Stop);
radioButtonDisableWathing.Checked = true;
}
else