aws-samples / amazon-textract-textractor

Analyze documents with Amazon Textract and generate output in multiple formats.
Apache License 2.0
360 stars 134 forks source link

Improve error message that identified InvalidS3ObjectException as RegionMismatch #377

Closed Belval closed 1 week ago

Belval commented 1 week ago

Issue #, if available: #364

Description of changes: This removes RegionMismatchError and replaces it with InvalidS3ObjectException. Additionally the exception explanation makes it clear to check the S3 path first and then to check for region mismatch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.