Skip to content

Commit

Permalink
Merge pull request #21 from PandaTechAM/development
Browse files Browse the repository at this point in the history
Importer latest support adaptation
  • Loading branch information
ruboarm committed May 6, 2024
2 parents 02f5153 + 01022e1 commit 00c5399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ResponseCrafter/PandaExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ private async Task HandleImportExceptionAsync(HttpContext httpContext, ImportExc
{
case InvalidColumnValueException _:
case InvalidPropertyNameException _:
case EmptyFileImportException _:
var exceptionName = importException.GetType().Name;
var formattedMessage = $"{exceptionName} in Filters: {importException.Message}";
var formattedMessage = $"{exceptionName} in Import: {importException.Message} {importException.Value}";
var mappedException = new BadRequestException(formattedMessage);
await HandleApiExceptionAsync(httpContext, mappedException, cancellationToken);
break;
Expand Down
4 changes: 2 additions & 2 deletions src/ResponseCrafter/ResponseCrafter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Copyright>MIT</Copyright>
<PackageIcon>pandatech.png</PackageIcon>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<Version>1.4.7</Version>
<Version>1.4.8</Version>
<PackageId>Pandatech.ResponseCrafter</PackageId>
<PackageTags>Pandatech, library, exception handler, exception, middleware, Api response</PackageTags>
<Title>ResponseCrafter</Title>
Expand All @@ -25,7 +25,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.3" />
<PackageReference Include="Pandatech.EFCoreQueryMagic" Version="1.0.7" />
<PackageReference Include="PandaTech.FluentImporter" Version="2.0.3" />
<PackageReference Include="PandaTech.FluentImporter" Version="2.0.6" />
<PackageReference Include="PandaTech.ServiceResponse" Version="1.2.12" />
</ItemGroup>

Expand Down

0 comments on commit 00c5399

Please sign in to comment.