Skip to content

Commit

Permalink
Merge 2fcca55 into dd4e7fb
Browse files Browse the repository at this point in the history
  • Loading branch information
argouber committed Dec 8, 2020
2 parents dd4e7fb + 2fcca55 commit 3757f8d
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
7 changes: 6 additions & 1 deletion codegen/template_bundle/template_files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions codegen/templates/tchannel_client.tmpl
Expand Up @@ -288,6 +288,11 @@ type {{$clientName}} struct {
case result.{{title .Name}} != nil:
err = result.{{title .Name}}
{{end -}}
{{if ne .ResponseType "" -}}
case result.Success != nil:
logger.Error("Internal error. Success flag is not set for {{title .Name}}. Overriding")
success = true
{{end -}}
default:
err = errors.New("{{$clientName}} received no result or unknown exception for {{title .Name}}")
}
Expand Down
69 changes: 69 additions & 0 deletions examples/example-gateway/build/clients/baz/baz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/example-gateway/build/clients/corge/corge.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3757f8d

Please sign in to comment.