fixed bug in reporting error downloading S3 object