You should call console.log(err.stack) instead of console.log(err)

On Wednesday, July 22, 2015 at 3:24:48 AM UTC+7, Robert Steckroth wrote:
>
> Some nodejs errors are not very informative. How can I get nodejs to print 
> line numbers and stack trace for this error?
>
> Exaple ouptut of nodejs error to satdout -> 
> *Cannot read property 'sp' of undefined*
>
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/b313c64f-5428-4303-a4b5-d79b998c7545%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to