Fixed string in callback instead of Error (fixes #153)

This commit is contained in:
Alexander Corn 2017-01-18 15:50:11 -05:00
parent e5f1f14aad
commit 0c7c030f78

View File

@ -49,7 +49,7 @@ SteamCommunity.prototype.getInventoryHistory = function(options, callback) {
var $ = Cheerio.load(body); var $ = Cheerio.load(body);
if (!$('.inventory_history_pagingrow').html()) { if (!$('.inventory_history_pagingrow').html()) {
callback("Malformed page: no paging row found"); callback(new Error("Malformed page: no paging row found"));
return; return;
} }