refactoring

This commit is contained in:
programmer10110 2020-08-25 16:02:06 +03:00
parent 75f6322e05
commit 1adce87a81
1 changed files with 3 additions and 3 deletions

View File

@ -198,9 +198,9 @@ func (am *AirgappedMachine) HandleOperation(operation client.Operation) (client.
if err != nil {
log.Println(fmt.Sprintf("failed to handle operation %s, returning response with error to client: %v",
operation.Type, err))
//if e := am.writeErrorRequestToOperation(&operation, err); e != nil {
// return nil, fmt.Errorf("failed to write error request to an operation: %w", e)
//}
if e := am.writeErrorRequestToOperation(&operation, err); e != nil {
return operation, fmt.Errorf("failed to write error request to an operation: %w", e)
}
}
return operation, nil