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

read-only file error handling #1125

Open
sharethewisdom opened this issue Aug 28, 2024 · 0 comments
Open

read-only file error handling #1125

sharethewisdom opened this issue Aug 28, 2024 · 0 comments

Comments

@sharethewisdom
Copy link

sharethewisdom commented Aug 28, 2024

I tried to run "tidy -e" on a read-only file, because I wasn't sure if it would be written to.

$ chmod a-w index.html
$ stat -c '%A' index.html
-r--r--r--
$ tidy -q -e index.html  
Document: "index.html" is not a file!
$ echo $?
0
$ tidy --version       
HTML Tidy for Linux version 5.6.0

Why could Tidy not process this file? Could Tidy handle the error better? A message that it could not write to the file, with an appropriate exit code, for example.

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