mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2024-12-29 16:10:12 +08:00
Return an error if we get invalid XML when getting a CSteamUser
This commit is contained in:
parent
80979bc387
commit
3d566ed0fb
@ -40,6 +40,10 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) {
|
||||
customurl = match[1];
|
||||
}
|
||||
}
|
||||
|
||||
if(!result.profile.steamID64 || !result.profile.onlineState) {
|
||||
callback(new Error("No valid response"));
|
||||
}
|
||||
|
||||
callback(null, new CSteamUser(self, result.profile, customurl));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user