diff --git a/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs b/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs index 15f3026..fb51e0e 100644 --- a/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs +++ b/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs @@ -132,7 +132,7 @@ public partial class FormBusCollection : Form } catch (CollectionOverflowException ex) { - MessageBox.Show("В коллекции превышено допустимое количество: 24"); + MessageBox.Show(ex.Message); _logger.LogError($"Ошибка: {ex.Message}"); } } @@ -165,7 +165,7 @@ public partial class FormBusCollection : Form } catch (Exception ex) { - MessageBox.Show($"Не найден объект по позиции: {pos}"); + MessageBox.Show(ex.Message); _logger.LogError("Ошибка: {Message}", ex.Message); } }