Error message handling can be improved?

Hi,

when I open an room by using a wrong name with this method:
try {
     PhotonNetwork.JoinRoom("wrongRoomName");
}
catch {
     ShowErrorMessage("Room doesnt exist", "Error");
}
then your 'new' error message handling where I read this comment:
// extra logging for error debugging (helping developers with a bit of automated analysis)
stops my App and throws out an error by debug.log.

Why you don't deliver the error message to the catch function?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Klaus Eiperle,

    Thank you for choosing Photon!

    What you are asking for is not possible since Photon calls are asynchronous: client sends request to the server and server may return response.
    What you should look for instead are callbacks for success or failure depending on the operation.
    You can find those listed here.
  • Oh... that helps and makes sense. Thank you very much.