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

Error name is truncated in message. #2361

Closed
kownacki opened this issue Jul 7, 2016 · 2 comments
Closed

Error name is truncated in message. #2361

kownacki opened this issue Jul 7, 2016 · 2 comments
Labels
type: bug a defect, confirmed by a maintainer

Comments

@kownacki
Copy link

kownacki commented Jul 7, 2016

describe("it", function() {
    it("should work", function() {
        throw new Error;
    });
});

It prints:

  it
    1) should work


  0 passing (10ms)
  1 failing

  1) it should work:

  rror
      at Context.<anonymous> (example.js:12:15)

rror?

@boneskull boneskull added type: bug a defect, confirmed by a maintainer confirmed labels Jul 9, 2016
@boneskull
Copy link
Member

lol. guess we don't test with Errors missing a message very often. good catch!

boneskull added a commit to boneskull/mocha that referenced this issue Jul 9, 2016
boneskull added a commit that referenced this issue Jul 9, 2016
* master:
  don't truncate message-list Error in Base.list(); closes #2361 (#2365)
  Add --preserve-symlinks flag for node (#2364)
  add "expect" to eslint globals in test/
@kownacki
Copy link
Author

kownacki commented Jul 9, 2016

Hey, @boneskull, thanks for the quick fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants