question

Stefano Farina avatar image
Stefano Farina asked

How to manipulate PlayFabError.GenerateErrorReport

I need to delete the "call stack" of the error report (/Client/RegisterPlayFabUser:) from my error report. Is it possible without using any string manipulation? (for string manipulation I refer to string.split or any related to it, since I wanna keep everything flexible and using this approach constrains my code quite a bit.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

In your case, you can use the following method to get the error message does not contain the call stack.

private void OnFail(PlayFabError error)
    {
        Debug.Log(error.ErrorMessage);
    }

Besides, you can jump to the definition of PlayFabError for more information about other properties of the PlayFabError instance. You can obtain other Http response information, such as Http Code, API Endpoint, etc. for your needs.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.