Skip to content
Discussion options

You must be logged in to vote

I don't think this pattern is being used but it should be possible to support it. In any case the current behavior of generating incorrect code is clearly a bug, it should either generate workable code or error at generation time.

The generated MakeXYZError function use the error message to create the underlying Goa error data structure. The idea is that when you want to return an error you probably already have one you just want to wrap with the generated function.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RedMarcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants