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

Bug: Error logging with bun@1.1.0 has issues #283

Open
mgcrea opened this issue Apr 4, 2024 · 1 comment
Open

Bug: Error logging with bun@1.1.0 has issues #283

mgcrea opened this issue Apr 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mgcrea
Copy link

mgcrea commented Apr 4, 2024

Describe the bug
When logging a simple error when using bun:

log.fatal(new Error("I am a pretty Error with a stacktrace."));

The output log is somehow broken with many empty lines:

 Error  I am a pretty Error with a stacktrace., 26, 20, 26, 20, /Users/foo/Projects/bar/baz/src/app.ts
error stack:
  • app.ts      module code
        /src/app.ts:26
  • 

  • 

  • 

  • 

To Reproduce
Steps to reproduce the behavior:

  1. Start a ts file with bun@1.1.0
  2. log.fatal(new Error("I am a pretty Error with a stacktrace."));

Expected behavior
No see empty lines

Bun Version
1.1.0

@mgcrea mgcrea added the bug Something isn't working label Apr 4, 2024
@drewbitt
Copy link

drewbitt commented Apr 7, 2024

https://bun.sh/docs/runtime/nodejs-apis

Bun's goal is to have full node compatability. If a package does not work in bun but does in node, the issue should be opened in bun, not the package itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants