Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feature Request] Propagate OS Errors on Make Directory and more. #558

Open
cjhillbrand opened this issue Feb 23, 2024 · 0 comments
Open

Comments

@cjhillbrand
Copy link

Hello, I am currently using the plenary plugin via the obsidian.nvim plug in, and is a very cool plug in. If I ever get to the point where I am writing my own plugin, I will definitely be using this library to aid in my development.

The request here is to propagate a bit more information when issuing requests to the OS. For example the specific example is invoking the mkdir function. The resulting error message is:

We couldn't mkdir: ...

It would help me during the debugging process to have more specific details associated with the failure. For example:

  1. Does the path not exist?
  2. Did the OS reject the path because it is not formatted correctly?
  3. Did the application not have the required permissions to create the directory?
  4. etc.

I would imagine this would have to be handled in an OS-specific manner, but would definitely be a huge value add to any error message!!

Thanks for the great library and I hope you consider the request!

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

No branches or pull requests

1 participant