mirror of https://github.com/certusone/dc4bc.git
refactoring
This commit is contained in:
parent
75f6322e05
commit
1adce87a81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue