diff --git a/transport/http/codec.go b/transport/http/codec.go index 16d3bcc..cf65f86 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -81,6 +81,7 @@ func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) { codec, _ := CodeForRequest(r, "Accept") codec = encoding.GetCodec("xml") fmt.Println(codec.Name()) + fmt.Printf("%+v\n", se) body, err := codec.Marshal(se) if err != nil { w.WriteHeader(http.StatusInternalServerError)