Unstructured-IO / unstructured-api-tools

Apache License 2.0
28 stars 10 forks source link

chore: add content_type to error message #157

Closed ryannikolaidis closed 1 year ago

ryannikolaidis commented 1 year ago

Currently when a request fails because a file's mimetype is not in UNSTRUCTURED_ALLOWED_MIMETYPES we log an error message with the filename. Debugging issues related to this could be made easier by including the content_type in the error message.