Commit 20285ead authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands: Indent JSON-marshalled Response output

parent c8345bb5
......@@ -43,9 +43,9 @@ const (
var marshallers = map[EncodingType]Marshaller{
JSON: func(res Response) ([]byte, error) {
if res.Error() != nil {
return json.Marshal(res.Error())
return json.MarshalIndent(res.Error(), "", " ")
}
return json.Marshal(res.Output())
return json.MarshalIndent(res.Output(), "", " ")
},
XML: func(res Response) ([]byte, error) {
if res.Error() != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment