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

util: Change how Error objects are formatted #4582

Closed
wants to merge 1 commit into from

Commits on Jan 8, 2016

  1. util: Change how Error objects are formatted

    Previously, Error objects were formatted as the result of a `toString`
    call bounded by square brackets. They are now formatted as the stack
    trace for the given error object. The intention initially was to emulate
    how browsers do `console.error` but since that would also impact
    `console.warn`, `console.log`, etc, it was decided to make the change at
    `util.inspect` level which is in turn used by the `console` package.
    
    Fixes: nodejs#4452
    zeusdeux committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    006a66a View commit details
    Browse the repository at this point in the history