MrPotato Posted May 22, 2019 Report Posted May 22, 2019 (edited) user.on('error', function(e) { log(username, "error: " + JSON.stringify(e)); log(username, e);}); Sometimes returns "{}" log:[y6p123] error: {}[y6p123] }Why? Edited May 22, 2019 by MrPotato Quote
Dr. McKay Posted May 22, 2019 Report Posted May 22, 2019 e is an Error object. Calling JSON.stringify on an Error object returns {}. MrPotato 1 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.