Renamed body.error to body.Error

This commit is contained in:
Andrew Dassonville 2016-03-03 19:22:05 -08:00
parent f4be134f71
commit 70ffc5559d

View File

@ -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"));
}