mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-26 23:50:10 +08:00
Renamed body.error to body.Error
This commit is contained in:
parent
f4be134f71
commit
70ffc5559d
@ -263,7 +263,7 @@ SteamCommunity.prototype.getUserInventory = function(userID, appID, contextID, t
|
||||
|
||||
if(!body || !body.success || !body.rgInventory || !body.rgDescriptions || !body.rgCurrency) {
|
||||
if(body) {
|
||||
callback(new Error(body.error || "Malformed response"));
|
||||
callback(new Error(body.Error || "Malformed response"));
|
||||
} else {
|
||||
callback(new Error("Malformed response"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user