Skip to content

Show error on failing to parse .tldrrc #366

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

Merged
merged 4 commits into from
Nov 6, 2021
Merged

Show error on failing to parse .tldrrc #366

merged 4 commits into from
Nov 6, 2021

Conversation

T3sT3ro
Copy link
Contributor

@T3sT3ro T3sT3ro commented Nov 1, 2021

Description

Fixes #365

Checklist

Please review this checklist before submitting a pull request.

  • Code compiles correctly
  • Created tests, if possible
  • All tests passing (npm run test:all)
  • Extended the README / documentation, if necessary

^^^ I am on such a bad connection right now, that I can't even do npm install correctly. I need someone to check, review and enhance if needed. I've never worked with mocha before, so also please check the test I added. Maybe it would also be good to add a test that checks what happens if .tldrrc file is missing.

@MasterOdin MasterOdin changed the title Fix #365 silent .tldrrc fail on invalid JSON Show error on failing to parse .tldrrc Nov 2, 2021
Copy link
Contributor

@marchersimon marchersimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @T3sT3ro

@marchersimon marchersimon merged commit 4d940b6 into tldr-pages:master Nov 6, 2021
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.

tldr fails silently when trying to read invalid .tldrrc leading to confusion
5 participants