-
Notifications
You must be signed in to change notification settings - Fork 479
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
Improve error message if working-directory
does not exist
#2295
Comments
I think the best way to fix this is, when running a command, if it returns an error and that error is file not found, check if the working directory exists and if it does not, transform the error into a more specific error about the working directory not existing. |
Was hit by this yesterday and the current error message was definitely confusing. |
Handles two cases: - working directory doesn't exist. - working directory cannot be changed into due to on of the following: - The process lacks permissions to view the contents. - The path points at a non-directory file. Addresses: casey#2295
The same problem would happen if the working directory was a file or couldn't be changed to due to lack of permissions, so I tackled all possibilities at once. |
Handles two cases: - working directory doesn't exist. - working directory cannot be changed into due to on of the following: - The process lacks permissions to view the contents. - The path points at a non-directory file. Addresses: casey#2295
Handles two cases: - working directory doesn't exist. - working directory cannot be changed into due to on of the following: - The process lacks permissions to view the contents. - The path points at a non-directory file. Addresses: casey#2295
Handles two cases: - working directory doesn't exist. - working directory cannot be changed into due to on of the following: - The process lacks permissions to view the contents. - The path points at a non-directory file. Addresses: casey#2295
For justfiles that override
working-directory
value, if the dir does not exist, just gives a rather criptic message:The text was updated successfully, but these errors were encountered: