Fixed "Error: Error:" in trade errors

This commit is contained in:
Alexander Corn 2016-06-03 20:10:33 -04:00
parent 8be8e395b6
commit 9081528f72

View File

@ -130,7 +130,7 @@ SteamCommunity.prototype._checkTradeError = function(html, callback) {
var match = html.match(/<div id="error_msg">\s*([^<]+)\s*<\/div>/);
if (match) {
var err = new Error(match[1].trim());
callback(new Error(err));
callback(err);
return err;
}