gerbenjacobs / HabboAPI

A PHP wrapper for the (undocumented) Habbo API
MIT License
44 stars 10 forks source link

Updated response error checking #38

Closed kyoteprod closed 7 years ago

kyoteprod commented 7 years ago

Since the newest revision of the API returns a "{'error':'not-found'}" response when an incorrect username is queried, I updated this in the HabboParser::throwHabboApiException($data) method.

gerbenjacobs commented 7 years ago

Actually this is already in the code, including a test for it.