From 7a3a4b66ca1fda4e502b313695a638254211bd04 Mon Sep 17 00:00:00 2001 From: bekodeg Date: Wed, 6 Dec 2023 10:12:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectricLocomotive/Generics/LocomotivesGenericStorage.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ElectricLocomotive/Generics/LocomotivesGenericStorage.cs b/ElectricLocomotive/Generics/LocomotivesGenericStorage.cs index 4731b30..c270f19 100644 --- a/ElectricLocomotive/Generics/LocomotivesGenericStorage.cs +++ b/ElectricLocomotive/Generics/LocomotivesGenericStorage.cs @@ -123,7 +123,7 @@ namespace ProjectElectricLocomotive.Generics sw.WriteLine("LocomotiveStorage"); if (_locomotiveStorage.Count == 0) { - return false; + throw new InvalidOperationException("Невалиданя операция, нет данных длясохранения"); } foreach ( KeyValuePair