Jump to content


Photo

user.on('error') returns sometimes empty object

node.js node-steam-user

  • Please log in to reply
1 reply to this topic

#1 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 66 posts

Posted 22 May 2019 - 05:39 AM

user.on('error', function(e) {
    log(username, "error: " + JSON.stringify(e));
    log(username, e);
});
 
Sometimes returns "{}"
 
log:
[y6p123] error:  {}
[y6p123] }

Why?

Edited by MrPotato, 22 May 2019 - 05:41 AM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,208 posts

Posted 22 May 2019 - 04:30 PM

e is an Error object. Calling JSON.stringify on an Error object returns {}.


  • MrPotato likes this





Also tagged with one or more of these keywords: node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users