Skip to content

Using EResult from DoctorMcKay modules

mcmuffindk edited this page Mar 7, 2018 · 1 revision

You can use the Steam related error objects from the node-steam-* that DoctorMcKay have created.

An error object could look like this (node-steam-trade-offer-manager):

{ Error: There was an error sending your trade offer.  Please try again later. (26)
    ...
  eresult: 26 }

How to use Eresult

steamErrors(errorObject.eresult, (err, result) => {
	if(err){
		throw err;
	}
	console.log(result);
});

Clone this wiki locally