s3: improved error messages