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

Ensure debug information is returned for recursive checks that dispatch #2017

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

josephschorr
Copy link
Member

No description provided.

@josephschorr josephschorr requested a review from a team August 9, 2024 22:34
@github-actions github-actions bot added area/api v1 Affects the v1 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) area/dispatch Affects dispatching of requests labels Aug 9, 2024
@@ -340,6 +341,19 @@ func distinguishGraphError(ctx context.Context, dispatchError error, source devi
}, nil
}

details, ok := spiceerrors.GetDetails[*errdetails.ErrorInfo](dispatchError)
Copy link
Contributor

Choose a reason for hiding this comment

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

why doesn't the previous case handle this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because the previous case is a non-gRPC wrapped error from the local dispatch vs a gRPC error from a remote dispatch

@josephschorr josephschorr added this pull request to the merge queue Aug 12, 2024
Merged via the queue into authzed:main with commit 5ee5c8e Aug 12, 2024
22 checks passed
@josephschorr josephschorr deleted the check-recurse-error branch August 12, 2024 18:02
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/api v1 Affects the v1 API area/dispatch Affects dispatching of requests area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants