Skip to content
Snippets Groups Projects

Better Error Handling and Logging

Merged Timm Fitschen requested to merge dev into main
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -140,11 +140,16 @@ auto Transaction::ExecuteAsynchronously() noexcept -> void {
@@ -140,11 +140,16 @@ auto Transaction::ExecuteAsynchronously() noexcept -> void {
grpc_status.error_message();
grpc_status.error_message();
this->status = TransactionStatus::RPC_ERROR(error_details);
this->status = TransactionStatus::RPC_ERROR(error_details);
}
}
 
return;
} else {
} else {
this->status = TransactionStatus::SUCCESS();
this->status = TransactionStatus::SUCCESS();
}
}
auto *entity = response.release_entity();
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);
this->result_set = std::make_unique<UniqueResult>(entity);
}
}
Loading