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

fix: make errors serializable #516

Merged
merged 2 commits into from
May 28, 2023
Merged

Conversation

alexander-akait
Copy link
Member

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

part of webpack/webpack#15980

Breaking Changes

No

Additional Info

No

: "",
].join("\n");

const obj = new Error(message, { cause: error });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should improve cause on webpack side too, in my TODO

@codecov
Copy link

codecov bot commented May 27, 2023

Codecov Report

Patch coverage: 88.23% and project coverage change: +0.04 🎉

Comparison is base (5e0308e) 93.33% compared to head (d106790) 93.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #516      +/-   ##
==========================================
+ Coverage   93.33%   93.37%   +0.04%     
==========================================
  Files           4        3       -1     
  Lines         150      151       +1     
  Branches       33       33              
==========================================
+ Hits          140      141       +1     
  Misses         10       10              
Impacted Files Coverage Δ
src/utils.js 95.00% <87.50%> (-1.43%) ⬇️
src/index.js 90.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alexander-akait alexander-akait merged commit 68adcc2 into master May 28, 2023
@alexander-akait alexander-akait deleted the fix-make-errors-serializable branch May 28, 2023 00:06
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.

1 participant