Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke error messages: returned callback(new Error('some message')) always printing {} #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nealshail
Copy link

By default JSON.stringify(new Error(‘some error message’)) will always print {}. In order to get a comprehensive error message we need to specifiy which properties of the error message to print out.

see this article for more details
https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify

By default JSON.stringify(new Error(‘some error message’)) will always print {}.  need to specifiy which properties of the error message to print out. see  https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant