-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
PowerPlatform-DataverseServiceClient/src/GeneralTools/DataverseClient/Client/DataverseTraceLogger.cs
Lines 96 to 102 in 07b3400
| public override void ResetLastError() | |
| { | |
| if (base.LastError.Length > 0) | |
| base.LastError.Remove(0, LastError.Length - 1); | |
| LastException = null; | |
| _ActiveExceptionsList.Clear(); | |
| } |
String is immutable. When you delete the LastError field, it is not deleted, but a new line is created in which there are no characters, that is, an empty string. To fix this, you must return the result of the Remove method in the LastError field.
base.LastError = base.LastError.Remove(0, LastError.Length - 1);
ciaomatteo
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working