Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

error stack should properly handle newlines #25

@redchair123

Description

@redchair123

If you make a typo (or elicit some other error), the text is rendered with "\n":

"SyntaxError: Unexpected identifier\n at new SandBox (/home/server/node-host/sandbox/index.js:66:9)\n at builder.back (/home/server/node-host/test.js:48:17)\n at builder.count (/home/server/node-host/sandbox/build.js:139:7)\n at done (/home/server/node-host/sandbox/build.js:24:7)\n at builder.compiler (/home/server/node-host/sandbox/build.js:62:2)\n at new builder (/home/server/node-host/sandbox/build.js:13:10)\n at Object. (/home/server/node-host/sandbox/build.js:143:13)\n at Object.build (/home/server/node-host/sandbox/index.js:111:37)\n at IncomingMessage. (/home/server/node-host/test.js:35:14)\n at IncomingMessage.emit (events.js:61:17)"

Those "\n" should be replaced with a proper newline character or a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions