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

better error msg when mkdir() fails #188

Open
xtforever opened this issue Aug 15, 2024 · 0 comments
Open

better error msg when mkdir() fails #188

xtforever opened this issue Aug 15, 2024 · 0 comments

Comments

@xtforever
Copy link

mkdir can fail e.g. when .cache does not exists. the errormsg generated from perror() is not helpful since it is not mentioned what file.
just replacing perror("Mkdir") with something like:

fprintf(stderr, "no backup - failed to create %s:%s ", backup_dir,strerror(errno));

help to see the problem.

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

No branches or pull requests

2 participants