aws/aws-sdk-js — pull request #406 by bkw (2014-11-08 18:22:05+00:00)
Title: pass error to callback early in finishSinglePart

Access violations or non-existant buckets seem to only manifest in finishSinglePart().
This trivial PR checks for errors and passes them up to the callback, before trying to manipulate `data`, which in these cases is undefined.