mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-15 12:50:07 +08:00
Fixed string in callback instead of Error (fixes #153)
This commit is contained in:
parent
e5f1f14aad
commit
0c7c030f78
@ -49,7 +49,7 @@ SteamCommunity.prototype.getInventoryHistory = function(options, callback) {
|
||||
|
||||
var $ = Cheerio.load(body);
|
||||
if (!$('.inventory_history_pagingrow').html()) {
|
||||
callback("Malformed page: no paging row found");
|
||||
callback(new Error("Malformed page: no paging row found"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user