forked from ddrilling/AsbCloudServer
Merge branch 'dev' into feature/update_well_operation_categories
This commit is contained in:
commit
0db60579a0
@ -180,12 +180,12 @@ namespace AsbCloudApp.Data
|
||||
/// </summary>
|
||||
protected void SetStatusComplete()
|
||||
{
|
||||
CountComplete++;
|
||||
if (CurrentState is null)
|
||||
return;
|
||||
|
||||
LastComplete = new(CurrentState);
|
||||
CurrentState = null;
|
||||
CountComplete++;
|
||||
Trace.TraceInformation($"{WorkNameForTrace} state: completed");
|
||||
}
|
||||
|
||||
@ -194,12 +194,12 @@ namespace AsbCloudApp.Data
|
||||
/// </summary>
|
||||
protected void SetLastError(string errorMessage)
|
||||
{
|
||||
CountErrors++;
|
||||
if (CurrentState is null)
|
||||
return;
|
||||
|
||||
LastError = new LastErrorInfo(CurrentState, errorMessage);
|
||||
CurrentState = null;
|
||||
CountErrors++;
|
||||
Trace.TraceError($"{WorkNameForTrace} throw exception[{CountErrors}]: {errorMessage}");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user