Исправлен конфиг логгера

This commit is contained in:
Данияр Аглиуллов 2022-10-29 00:52:33 +04:00
parent 4c76b5ca81
commit 0851574316
2 changed files with 12 additions and 2 deletions

View File

@ -8,6 +8,16 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<None Remove="nlog.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="nlog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.2" />

View File

@ -55,7 +55,7 @@ namespace AirBomber
public int Insert(T airplane, int position)
{
if (Count == _maxcount)
throw new StorageOverflowException();
throw new StorageOverflowException(_maxcount);
if (!isCorrectPosition(position))
{
return -1;
@ -74,7 +74,7 @@ namespace AirBomber
return null;
var result = this[position];
if (result == null)
throw new AirplaneNotFoundException();
throw new AirplaneNotFoundException(position);
_places.RemoveAt(position);
return result;
}