Skip to content

Commit

Permalink
Always add error code to the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaumov committed Jan 25, 2022
1 parent c0c824c commit f19b078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Acumatica.RESTClient/Acumatica.RESTClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ApplicationIcon>images\AcumaticaRESTClientLogo.ico</ApplicationIcon>
<Version>2.1.1</Version>
<Version>2.1.2</Version>
<Company>Acumatica</Company>
<Description>A simple client allowing to use Acuamtica REST API from C#. Based on OpenAPI spec version: 3, base code Generated by: https://github.com/openapitools/openapi-generator.git</Description>
<Copyright>Acumatica</Copyright>
Expand All @@ -12,7 +12,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/Acumatica/AcumaticaRESTAPIClientForCSharp</RepositoryUrl>
<PackageTags>Acumatica;REST;client;</PackageTags>
<PackageReleaseNotes>Breaking change: Refactored AuthEndpoint</PackageReleaseNotes>
<PackageReleaseNotes>Improved error reporting</PackageReleaseNotes>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Acumatica.RESTClient/Client/ApiException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ApiException(int errorCode, string message, string errorContent = null) :
}
catch
{
ErrorContent = message;
ErrorContent = message + "\r\n Error code: " + errorCode.ToString();
}
}
}
Expand Down

0 comments on commit f19b078

Please sign in to comment.