diff --git a/aws.go b/aws.go index 9837f96..f2c27b6 100644 --- a/aws.go +++ b/aws.go @@ -94,10 +94,13 @@ func (a *AWS) Upload(local, remote string) error { contentType = mime.TypeByExtension(fileExt) } - head, _ := a.client.HeadObject(&s3.HeadObjectInput{ + head, err := a.client.HeadObject(&s3.HeadObjectInput{ Bucket: aws.String(a.vargs.Bucket), Key: aws.String(remote), }) + if err != nil { + return err + } if head != nil { hash := md5.New()