Hi, I have my own RPC function
func MyStorageReadObject(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, payload string) (string, error)
and I try to return an error code with my error payload:
return "{\"MyError: EmptyResult\":10}", runtime.NewError("ResultNotFound", 5)
But in Postman I get only
{
"code": 5,
"error": {
"Message": "ResultNotFound",
"Code": 5
},
"message": "ResultNotFound"
}
Do I write it wrong? How can I get my string together with error?
Even in Unreal Client, I get only FNakamaError containing only:
Message: “ResultNotFound”
Code: NotFound
How can I get more in Unreal Client? For example my string from error from my own RPC functions?
{Details}
- Server: Go, registry.heroiclabs.com/heroiclabs/nakama:3.16.0
- Versions: Nakama {2.8.1}, {Windows}