Skip to content

fix: do not copy over stack from error cause#4784

Merged
yaacovCR merged 3 commits into
graphql:17.x.xfrom
Malien:do-not-copy-over-cause-stack
Jun 2, 2026
Merged

fix: do not copy over stack from error cause#4784
yaacovCR merged 3 commits into
graphql:17.x.xfrom
Malien:do-not-copy-over-cause-stack

Conversation

@Malien

@Malien Malien commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

I've authored #4485 long time ago. Since that PR sat there for a while, I didn't get a chance to amend the design to not copy over the stack from the cause.

Copying over the stack will just double up the same stack trace twice in the reporting tooling / console logs.

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

@Malien is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Jun 2, 2026
@yaacovCR yaacovCR changed the title Do not copy over stack from error cause fix: do not copy over stack from error cause Jun 2, 2026
yaacovCR added 2 commits June 2, 2026 11:26
my edits to graphql#4485 incorrectly passes originalError instead of cause for the stack-less cause test
@yaacovCR

yaacovCR commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@Malien fantastic!

Thanks for the original PR, and thanks for these corrections. I pushed a few cosmetic test changes, looks ok to you?

@Malien

Malien commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@yaacovCR Yeah. Looks great.

@yaacovCR yaacovCR merged commit 4c9d754 into graphql:17.x.x Jun 2, 2026
22 of 23 checks passed
yaacovCR added a commit that referenced this pull request Jun 2, 2026
## v17.0.0-rc.0 (2026-06-02)

#### New Feature 🚀
* [#4670](#4670) feat(v17): Implement tracing channels ([@logaretm](https://github.com/logaretm))

#### Bug Fix 🐞
* [#4761](#4761) fix: DeferStreamDirectiveOnRootField forbids fragments on abstract types ([@robrichard](https://github.com/robrichard))
* [#4762](#4762) fix: DeferStreamDirectiveOnValidOperations fragment tracking ([@robrichard](https://github.com/robrichard))
* [#4784](#4784) fix: do not copy over stack from error cause ([@Malien](https://github.com/Malien))

#### Docs 📝
* [#4781](#4781) docs: improve deprecation information regarding originalError and cause ([@yaacovCR](https://github.com/yaacovCR))

#### Committers: 4
* Abdelrahman Awad([@logaretm](https://github.com/logaretm))
* Rob Richard([@robrichard](https://github.com/robrichard))
* Yaacov Rydzinski ([@yaacovCR](https://github.com/yaacovCR))
* Yaroslav Petryk([@Malien](https://github.com/Malien))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: bug fix 🐞 requires increase of "patch" version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants