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

fix: don't crash on unexpected directory #14

Merged
merged 2 commits into from
Apr 9, 2023

Conversation

SethFalco
Copy link
Member

@SethFalco SethFalco commented Apr 9, 2023

In the tldr repo, we accidentally merged a PR with the wrong file structure.

This led tldr-translations-pairs-gen to crash. To avoid this from happening again, I added a verifyIntegrity function where can perform any checks on the file and make sure we're happy to process it. Currently, it just checks if it's a directory that logs a warning and skips it if so.

Related

@SethFalco SethFalco merged commit 23e8cc9 into tldr-pages:main Apr 9, 2023
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.

1 participant