Build a standard error reply. Single source of truth for the * `{"op": "error", "code": ..., "message": ...}` shape. */
| 23 | /** Build a standard error reply. Single source of truth for the |
| 24 | * `{"op": "error", "code": ..., "message": ...}` shape. */ |
| 25 | inline TSharedPtr<FJsonObject> MakeError(const FString& Code, |
| 26 | const FString& Message) |
| 27 | { |
| 28 | TSharedPtr<FJsonObject> Reply = MakeShared<FJsonObject>(); |
| 29 | Reply->SetStringField(TEXT("op"), TEXT("error")); |
| 30 | Reply->SetStringField(TEXT("code"), Code); |
| 31 | Reply->SetStringField(TEXT("message"), Message); |
| 32 | return Reply; |
| 33 | } |
| 34 | |
| 35 | /** Read the target-actor key from the request envelope. Wire |
| 36 | * format: `{"target": "<key>", "target_by": "actor_id" | |
no outgoing calls
no test coverage detected