GHOST Posted September 18, 2016 Report Posted September 18, 2016 How can I get the error code when I send offer? Quote
Lesu Posted September 18, 2016 Report 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
GHOST Posted September 18, 2016 Author Report Posted September 18, 2016 I know this, but I want to get error code, not error message. Quote
Dr. McKay Posted September 18, 2016 Report Posted September 18, 2016 err.eresult, provided it's available. Quote
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.