GHOST Posted September 18, 2016 Report Share Posted September 18, 2016 How can I get the error code when I send offer? Quote Link to comment Share on other sites More sharing options...
Lesu Posted September 18, 2016 Report Share Posted September 18, 2016 Callbacks should have an "err" parameter when they may return errors. "TradeOffer.send" does indeed let you catch errors, if that's the function you're talking about, by doing something like: offer.send(function(err) { console.log(err); }); Quote Link to comment Share on other sites More sharing options...
GHOST Posted September 18, 2016 Author Report Share Posted September 18, 2016 I know this, but I want to get error code, not error message. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 18, 2016 Report Share Posted September 18, 2016 err.eresult, provided it's available. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.