Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty return bodies when processing S3 errors.
Currently error commands that do not return a body cause s3cmd to output an ugly backtrace. This change checks to see if the data field of the response is non-empty before calling `getTreeFromXml` on it. An example of an offending command is using `s3cmd info` on a nonexistent object.
- Loading branch information