Skip to content

Commit 00a0c22

Browse files
committed
- In APIClient changed ErrorCode to be equal to the httpclient object
1 parent 94d6f2b commit 00a0c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Helpers/GXRestAPIClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public void RestExecute()
383383
serviceuri += "/" + this.Location.BaseUrl.TrimEnd('/').TrimStart('/') + "/" + this.Location.ResourceName;
384384
serviceuri += _queryString;
385385
httpClient.HttpClientExecute( this.HttpMethod, serviceuri);
386-
this.ErrorCode = (httpClient.ErrCode == 0)? 1: httpClient.ErrCode;
386+
this.ErrorCode = httpClient.ErrCode;
387387
this.ErrorMessage = httpClient.ErrDescription;
388388
this.StatusCode = httpClient.StatusCode;
389389
this.StatusMessage = httpClient.ReasonLine;

0 commit comments

Comments
 (0)