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: set stack to fullStack if set #992

Closed
wants to merge 1 commit into from
Closed

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Nov 16, 2023

What does this PR do?

SfError.fullStack is unknown by most (if not all) consumers of it. The reason for creating an SfError with a caused by error is to add the cause error stack to the new stack. Not sure what other reason there would be. This change sets the SfError.stack to be the same as SfError.fullStack

[skip-validate-pr]

@shetzel
Copy link
Contributor Author

shetzel commented Nov 16, 2023

Closing in favor of a larger refactor effort of SfError to take advantage of the native Error.cause. See also: https://salesforce-internal.slack.com/archives/G02K6C90RBJ/p1700164249793629

@shetzel shetzel closed this Nov 16, 2023
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.

2 participants