Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

last line of leading multiline message remains in cleaned stack #53

Open
boneskull opened this issue Oct 12, 2020 · 1 comment
Open

Comments

@boneskull
Copy link

// in REPL
const StackUtils = require('stack-utils');
const stack = new StackUtils();
try {
  throw new TypeError(`foo
bar
baz`);
} catch (err) {
  console.log(stack.clean(err.stack));
}

actual:

baz
    REPL18:2:9

expected:

either the entire message or none of it

@conartist6
Copy link

conartist6 commented Nov 1, 2021

This is fixed stack-tools.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants