Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make xml decode return according to spec

  • Loading branch information...
commit 7086d2645a5385177cf0e97f747a0f9996c6f77a 1 parent 509e2d8
@lafka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/tavern_marshal_xml.erl
View
2  src/tavern_marshal_xml.erl
@@ -17,7 +17,7 @@ decode(Payload) ->
-spec encode(tavern_http:tree()) -> {ok, Data :: binary()} | {error, Error :: atom()}.
encode(Payload) ->
case (catch xmerl:export_simple(encode_list(Payload), xmerl_xml)) of
- {'EXIT', A} -> {error, {'xml serialization failed', A}};
+ {'EXIT', A} -> {error, 'xml serialization failed'};
Data -> {ok, Data}
end.
Please sign in to comment.
Something went wrong with that request. Please try again.