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

WIP: allow dotnet to emit better errors for component construct #361

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tgummerer
Copy link
Contributor

Introduce a new InputPropertiesError that allows users to return more error details from a component construct.

Introduce a new InputPropertiesError that allows users to return more
error details from a component construct.

// var details = Google.Protobuf.WellKnownTypes.Any.Pack(status);
var metadata = new Metadata();
metadata.Add("grpc-status-details-bin", Google.Protobuf.MessageExtensions.ToByteArray(status));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how I thought the status details need to be added to the exception, but for some reason it doesn't seem to add the details.
E.g. here (this one is slightly different since it packs it into an Any type bofere or here it seems to be done in the same way, but neither of those ways seem to make it work for me. Not sure if I'm doing something wrong somewhere here 🤔

Copy link
Member

Choose a reason for hiding this comment

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

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