From f19b0780273005ee46d3f107bddf9c6143e2e301 Mon Sep 17 00:00:00 2001 From: dnaumov Date: Tue, 25 Jan 2022 13:17:30 -0500 Subject: [PATCH] Always add error code to the error message --- Acumatica.RESTClient/Acumatica.RESTClient.csproj | 4 ++-- Acumatica.RESTClient/Client/ApiException.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Acumatica.RESTClient/Acumatica.RESTClient.csproj b/Acumatica.RESTClient/Acumatica.RESTClient.csproj index fc290e5d..651c3aa9 100644 --- a/Acumatica.RESTClient/Acumatica.RESTClient.csproj +++ b/Acumatica.RESTClient/Acumatica.RESTClient.csproj @@ -3,7 +3,7 @@ netstandard2.0 images\AcumaticaRESTClientLogo.ico - 2.1.1 + 2.1.2 Acumatica 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 Acumatica @@ -12,7 +12,7 @@ README.md https://github.com/Acumatica/AcumaticaRESTAPIClientForCSharp Acumatica;REST;client; - Breaking change: Refactored AuthEndpoint + Improved error reporting GPL-3.0-only diff --git a/Acumatica.RESTClient/Client/ApiException.cs b/Acumatica.RESTClient/Client/ApiException.cs index 10fbf6e8..69cc05fb 100644 --- a/Acumatica.RESTClient/Client/ApiException.cs +++ b/Acumatica.RESTClient/Client/ApiException.cs @@ -81,7 +81,7 @@ public ApiException(int errorCode, string message, string errorContent = null) : } catch { - ErrorContent = message; + ErrorContent = message + "\r\n Error code: " + errorCode.ToString(); } } }