Исправлен конфиг логгера
This commit is contained in:
parent
4c76b5ca81
commit
0851574316
@ -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" />
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user