diff --git a/cdn-s3/s3_client.go b/cdn-s3/s3_client.go index a3041143..961a6f2e 100644 --- a/cdn-s3/s3_client.go +++ b/cdn-s3/s3_client.go @@ -82,5 +82,5 @@ func (s *Client) PutObject(key, ext string, file io.ReadSeeker) (err error) { if err != nil { return fmt.Errorf("failed to put object, %s", err.Error()) } - return nil + return err }