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

Improve error message for illegal filenames on Windows #7348

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

rgwood
Copy link
Contributor

@rgwood rgwood commented Dec 4, 2022

ls can fail when a directory contains a file that violates the Windows file naming conventions. This PR tweaks the error message so we tell the user which file caused the problem.

Closes #7345.

Before:

image

After:

image

Future Work

Like Chris said in the linked issue, it would be even better if Nu could just handle these naughty files like cmd.exe and pwsh do. If someone has the time to dive into how PowerShell does this, that would be much appreciated.

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

Successfully merging this pull request may close these issues.

We should return a better error for "illegal" filenames on Windows
1 participant