grunt-aws-lambda icon indicating copy to clipboard operation
grunt-aws-lambda copied to clipboard

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

Open nealshail opened this issue 8 years ago • 0 comments

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

nealshail avatar Aug 07 '17 15:08 nealshail