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