SFSErrorCodes documentation appears incorrect

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

Post Reply
User avatar
marsoups
Posts: 167
Joined: 14 Apr 2008, 03:30

SFSErrorCodes documentation appears incorrect

Post by marsoups »

Using the examples from the documentation :
http://docs2x.smartfoxserver.com/api-do ... Codes.html results in an error :

Code: Select all

function someMethod()
{
	SFS2X.ErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
}

Code: Select all

TypeError: Cannot read property 'setErrorMessage' of undefined
I tried setting it to look like this :

Code: Select all

SFS2X.SFSErrorCodes.setErrorMessage(200, "Token {0} has expired!");
however, the returned error message doesn't translate accordingly and it just returns a blank message. Am I doing something wrong ?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSErrorCodes documentation appears incorrect

Post by Lapo »

Hi,
thanks for reporting. We'll fix it asap.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFSErrorCodes documentation appears incorrect

Post by Bax »

Error fixed. Please download API v1.7.10.
We also fixed the documentation error; in fact you should use:

Code: Select all

function someMethod()
{
   SFS2X.SFSErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
}
Paolo Bax
The SmartFoxServer Team
Post Reply