Skip to content

Handle empty return bodies when processing S3 errors. #32

Merged
merged 1 commit into from Mar 1, 2012
Commits on Feb 29, 2012
  1. @kellymclaughlin

    Handle empty return bodies when processing S3 errors.

    kellymclaughlin committed Feb 29, 2012
    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.
Something went wrong with that request. Please try again.