fix template for http to avoid warning

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-19 03:40:09 +03:00
parent edbc9228ae
commit 2871c37629
4 changed files with 10 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ func (c *{{$ServiceName | lowerFirst}}Service) {{.Name}}(ctx context.Context, re
{{ range $k, $v := (openapiOption .).Responses }}
// Error method to satisfy error interface
func (e *{{- (getMessageType $File $v.Schema.JsonSchema.Ref).Name }}) Error() string {
return fmt.Sprintf("%v", e)
return fmt.Sprintf("%#v", e)
}
{{- end }}
{{- end }}