kyle-mccarthy commented on PR #6158: URL: https://github.com/apache/arrow-rs/pull/6158#issuecomment-2261486710
@tustvold I understand your concerns and feel like they are valid. I [have a branch](https://github.com/kyle-mccarthy/arrow-rs/commit/25de698dd4765d6233002ce003fb710a5a959541) that takes an alternative approach and surfaces permissions problem though a `PermissionDenied` variant on the top level `object_store::Error` enum. I am primarily wanting to be able able to identify permission related problems, so either direction would help me. However, I think the core problem would still exist if just the `PermissionDenied` varient was added. The core problem being that `object_store` uses private types (albeit type erased) in the public `source` field of `object_store::Error::Generic` variant. This forces downstream users of the crate to handle all generic errors the same way, or resort to parsing the stringified error message. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
