Skip to content

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

Draft
tgummerer wants to merge 1 commit intomainfrom
tg/grpc-errors-dotnet
Draft

WIP: allow dotnet to emit better errors for component construct#361
tgummerer wants to merge 1 commit intomainfrom
tg/grpc-errors-dotnet

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

Comments