Skip to content

Instantly share code, notes, and snippets.

@iforwms
Created September 4, 2018 06:55
Show Gist options
  • Save iforwms/576c2bb2a9787654ecf5bb557671cfb8 to your computer and use it in GitHub Desktop.
Save iforwms/576c2bb2a9787654ecf5bb557671cfb8 to your computer and use it in GitHub Desktop.
Get stringified version of error response object
JSON.stringify(error, Object.getOwnPropertyNames(error))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment