Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Confusing error message when using a File that wasn't built from a bookmark. #3

Open
pschuegr opened this issue Dec 31, 2020 · 1 comment

Comments

@pschuegr
Copy link

When you pass in a File that you don't have a bookmark for to startAccessingSecurityScopedResource, the error message says

expected file argument to be string

When the actual problem is that you don't have a bookmark for this file. Since the API allows arbitrary files to be passed in, it would be great if the error message was better for this situation.

I'm not familiar with Swift so I don't really want to fix it myself, but I'm happy to send a PR to update the documentation if you don't want to fix this.

Thanks! Super happy I found this plugin.

@stephane-archer
Copy link

@sbhamad, it is unclear why you need to create a bookmark from a file, resolve it to get another file (what's special about this one?), and then pass it to startAccessingSecurityScopedResource.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants