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

Properly quit on uncaught exceptions #4987

Merged
merged 2 commits into from May 13, 2023
Merged

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

There was a bug in the uncaughtException handler in that it accidentally passed the error as exit code, swallowing the actual error. This is fixed here.

@vercel
Copy link

vercel bot commented May 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2023 1:12pm

@github-actions
Copy link

github-actions bot commented May 10, 2023

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#handle-uncaught-errors

or load it into the REPL:
https://rollup-lguoqak1k-rollup-js.vercel.app/repl/?pr=4987

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #4987 (a48c61b) into master (38787ce) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #4987      +/-   ##
==========================================
- Coverage   98.99%   98.96%   -0.03%     
==========================================
  Files         222      222              
  Lines        8133     8135       +2     
  Branches     2239     2239              
==========================================
  Hits         8051     8051              
- Misses         28       30       +2     
  Partials       54       54              
Impacted Files Coverage Δ
cli/run/watch-cli.ts 86.48% <50.00%> (-2.41%) ⬇️

@lukastaegert lukastaegert merged commit 896eb38 into master May 13, 2023
8 of 10 checks passed
@lukastaegert lukastaegert deleted the handle-uncaught-errors branch May 13, 2023 13:12
@rollup-bot
Copy link
Collaborator

This PR has been released as part of rollup@3.21.7. You can test it via npm install rollup.

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

Successfully merging this pull request may close these issues.

None yet

2 participants