Skip to content
Snippets Groups Projects
Verified Commit a120c8b1 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: error handling

parent bae8f8ac
Branches
Tags
1 merge request!3Better Error Handling and Logging
Checking pipeline status
......@@ -140,11 +140,16 @@ auto Transaction::ExecuteAsynchronously() noexcept -> void {
grpc_status.error_message();
this->status = TransactionStatus::RPC_ERROR(error_details);
}
return;
} else {
this->status = TransactionStatus::SUCCESS();
}
auto *entity = response.release_entity();
if (!entity->errors().empty()) {
this->status =
TransactionStatus::TRANSACTION_ERROR("The request returned with errors.");
}
this->result_set = std::make_unique<UniqueResult>(entity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment