mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-21 09:06:54 +08:00
Fixed "Error: Error:" in trade errors
This commit is contained in:
parent
8be8e395b6
commit
9081528f72
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user